From: Alexandre Emsenhuber Date: Tue, 14 Feb 2012 15:06:13 +0000 (+0000) Subject: Also call $this->clear() from WikiPage::doDeleteUpdates() so that the object is in... X-Git-Tag: 1.31.0-rc.0~24715 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=77fe134b08e17f8af364cb906f85207c432f4229;p=lhc%2Fweb%2Fwiklou.git Also call $this->clear() from WikiPage::doDeleteUpdates() so that the object is in a consistent state after deletion --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index b8e7211573..53330b8982 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -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 ); }