r55399 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55398‎ | r55399 | r55400 >
Date:23:11, 20 August 2009
Author:aaron
Status:ok
Tags:
Comment:
Use $pager accessors as I should have in the first place
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1457,14 +1457,8 @@
14581458 }
14591459
14601460 public static function addToHistQuery( $pager, &$queryInfo ) {
1461 - if( isset( $pager->mPageHistory ) ) {
1462 - // 1.15 or before
1463 - $historyPage = $pager->mPageHistory;
1464 - } else {
1465 - // 1.16 after r55168
1466 - $historyPage = $pager->historyPage;
1467 - }
1468 - $flaggedArticle = FlaggedArticle::getTitleInstance( $historyPage->getTitle() );
 1461+ $title = $pager->getArticle()->getTitle();
 1462+ $flaggedArticle = FlaggedArticle::getTitleInstance( $title );
14691463 # Non-content pages cannot be validated. Stable version must exist.
14701464 if( $flaggedArticle->isReviewable() && $flaggedArticle->getStableRev() ) {
14711465 $queryInfo['tables'][] = 'flaggedrevs';

Status & tagging log