Page MenuHomePhabricator

del-order.diff

Authored By
bzimport
Nov 21 2014, 11:21 PM
Size
831 B
Referenced Files
None
Subscribers
None

del-order.diff

Index: includes/Article.php
===================================================================
--- includes/Article.php (revision 77540)
+++ includes/Article.php (working copy)
@@ -3281,9 +3281,6 @@
# Clear caches
Article::onArticleDelete( $this->mTitle );
- # Clear the cached article id so the interface doesn't act like we exist
- $this->mTitle->resetArticleID( 0 );
-
# Log the deletion, if the page was suppressed, log it at Oversight instead
$logtype = $suppress ? 'suppress' : 'delete';
$log = new LogPage( $logtype );
@@ -3291,6 +3288,9 @@
# Make sure logging got through
$log->addEntry( 'delete', $this->mTitle, $reason, array() );
+ # Clear the cached article id so the interface doesn't act like we exist
+ $this->mTitle->resetArticleID( 0 );
+
if ( $commit ) {
$dbw->commit();
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6857
Default Alt Text
del-order.diff (831 B)

Event Timeline