Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1573,8 +1573,10 @@ |
1574 | 1574 | |
1575 | 1575 | public static function addToChangeListLine( &$list, &$articlelink, &$s, &$rc, $unpatrolled, $watched ) { |
1576 | 1576 | global $wgUser; |
1577 | | - if( $rc->getTitle()->getNamespace() < 0 || !isset($rc->mAttribs['fpp_rev_id']) ) |
1578 | | - return true; // reviewed pages only |
| 1577 | + if( empty($rc->mAttribs['fpp_rev_id']) ) |
| 1578 | + return true; // page is not listed in pending edit table |
| 1579 | + if( !FlaggedRevs::isPageReviewable($rc->getTitle()) ) |
| 1580 | + return true; // confirm that page is in reviewable namespace |
1579 | 1581 | wfLoadExtensionMessages( 'FlaggedRevs' ); |
1580 | 1582 | $rlink = $list->skin->makeKnownLinkObj( $rc->getTitle(), wfMsg('revreview-reviewlink'), |
1581 | 1583 | 'oldid='.intval($rc->mAttribs['fpp_rev_id']).'&diff=cur' ); |