r58574 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58573‎ | r58574 | r58575 >
Date:08:22, 5 November 2009
Author:aaron
Status:ok
Tags:
Comment:
Fixed old bug where titleInstance() was called on an Article
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1743,7 +1743,7 @@
17441744 if( $wgFlaggedRevsAutoReviewNew && !$editPage->getArticle()->getId() ) {
17451745 return true; // not needed
17461746 }
1747 - $fa = FlaggedArticle::getTitleInstance( $editPage->getArticle() );
 1747+ $fa = FlaggedArticleView::globalArticleInstance();
17481748 if( $fa->isReviewable() && !$fa->limitedUI() ) {
17491749 $srev = $fa->getStableRev();
17501750 # For pages with either no stable version, or an outdated one, let

Status & tagging log