Index: trunk/extensions/FlaggedRevs/presentation/FlaggedRevsUI.hooks.php |
— | — | @@ -325,7 +325,7 @@ |
326 | 326 | } |
327 | 327 | |
328 | 328 | public static function addToHistQuery( HistoryPager $pager, array &$queryInfo ) { |
329 | | - $flaggedArticle = FlaggedPage::getArticleInstance( $pager->getArticle() ); |
| 329 | + $flaggedArticle = FlaggedPage::getTitleInstance( $pager->getTitle() ); |
330 | 330 | # Non-content pages cannot be validated. Stable version must exist. |
331 | 331 | if ( $flaggedArticle->isReviewable() && $flaggedArticle->getStableRev() ) { |
332 | 332 | # Highlight flaggedrevs |
— | — | @@ -416,7 +416,7 @@ |
417 | 417 | } |
418 | 418 | |
419 | 419 | public static function addToHistLine( HistoryPager $history, $row, &$s, &$liClasses ) { |
420 | | - $fa = FlaggedPage::getArticleInstance( $history->getArticle() ); |
| 420 | + $fa = FlaggedPage::getTitleInstance( $history->getTitle() ); |
421 | 421 | if ( !$fa->isReviewable() ) { |
422 | 422 | return true; // nothing to do here |
423 | 423 | } |
— | — | @@ -431,7 +431,7 @@ |
432 | 432 | if ( !$history->fr_stableRevId ) { |
433 | 433 | return true; // nothing to do here |
434 | 434 | } |
435 | | - $title = $history->getArticle()->getTitle(); |
| 435 | + $title = $history->getTitle(); |
436 | 436 | $revId = (int)$row->rev_id; |
437 | 437 | // Pending revision: highlight and add diff link |
438 | 438 | $link = $class = ''; |