X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWikiPage.php;h=b5f4c1dfa667ff3aebdb1f5abccec082880b0055;hb=bae670cf03d81b8128ba7aadcfaa61d3b381cf2c;hp=b5318c0a1a1957e58c91c3c55c1d676c6ae515f8;hpb=500a1401d224455b562fbafd08d63b13023824e3;p=lhc%2Fweb%2Fwiklou.git 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 {