From 77fe134b08e17f8af364cb906f85207c432f4229 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 14 Feb 2012 15:06:13 +0000 Subject: [PATCH] Also call $this->clear() from WikiPage::doDeleteUpdates() so that the object is in a consistent state after deletion --- includes/WikiPage.php | 3 +++ 1 file changed, 3 insertions(+) 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 ); } -- 2.20.1