Also call $this->clear() from WikiPage::doDeleteUpdates() so that the object is in...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 14 Feb 2012 15:06:13 +0000 (15:06 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 14 Feb 2012 15:06:13 +0000 (15:06 +0000)
includes/WikiPage.php

index b8e7211..53330b8 100644 (file)
@@ -2104,6 +2104,9 @@ class WikiPage extends Page {
                # Clear caches
                self::onArticleDelete( $this->mTitle );
 
+               # Reset this object
+               $this->clear();
+
                # Clear the cached article id so the interface doesn't act like we exist
                $this->mTitle->resetArticleID( 0 );
        }