r111463 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111462‎ | r111463 | r111464 >
Date:15:06, 14 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Also call $this->clear() from WikiPage::doDeleteUpdates() so that the object is in a consistent state after deletion
Modified paths:
  • /trunk/phase3/includes/WikiPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WikiPage.php
@@ -2104,6 +2104,9 @@
21052105 # Clear caches
21062106 self::onArticleDelete( $this->mTitle );
21072107
 2108+ # Reset this object
 2109+ $this->clear();
 2110+
21082111 # Clear the cached article id so the interface doesn't act like we exist
21092112 $this->mTitle->resetArticleID( 0 );
21102113 }

Status & tagging log