From: Alexandre Emsenhuber Date: Fri, 1 Jun 2012 09:07:45 +0000 (+0200) Subject: Fix for Ibe3e88fa (a12ce17c): Moved WikiPage::getDeletionUpdates() near WikiPage... X-Git-Tag: 1.31.0-rc.0~23437^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=f3c8358eb8ff6dcbdaff6a7af709f00be78677b6;p=lhc%2Fweb%2Fwiklou.git Fix for Ibe3e88fa (a12ce17c): Moved WikiPage::getDeletionUpdates() near WikiPage::doDeleteUpdates(). Please group related methods instead of adding new at the bottom along with deprecated ones. Thanks. Change-Id: Ie08500de8226e33d5fe4c8a2a95c6a23a550e6d1 --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index b5318c0a1a..b5f4c1dfa6 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -2264,6 +2264,16 @@ class WikiPage extends Page { $this->mTitle->resetArticleID( 0 ); } + public function getDeletionUpdates() { + $updates = array( + new LinksDeletionUpdate( $this ), + ); + + //@todo: make a hook to add update objects + //NOTE: deletion updates will be determined by the ContentHandler in the future + return $updates; + } + /** * Roll back the most recent consecutive set of edits to a page * from the same user; fails if there are no eligible edits to @@ -2961,16 +2971,6 @@ class WikiPage extends Page { global $wgUser; return $this->isParserCacheUsed( ParserOptions::newFromUser( $wgUser ), $oldid ); } - - public function getDeletionUpdates() { - $updates = array( - new LinksDeletionUpdate( $this ), - ); - - //@todo: make a hook to add update objects - //NOTE: deletion updates will be determined by the ContentHandler in the future - return $updates; - } } class PoolWorkArticleView extends PoolCounterWork {