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(); }