Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1630,6 +1630,8 @@ |
1631 | 1631 | } |
1632 | 1632 | |
1633 | 1633 | public static function addToContribsQuery( $pager, &$queryInfo ) { |
| 1634 | + if( FlaggedRevs::stableOnlyIfConfigured() ) |
| 1635 | + return true; // don't show colors if almost nothing will be highlighted |
1634 | 1636 | # Highlight flaggedrevs |
1635 | 1637 | $queryInfo['tables'][] = 'flaggedrevs'; |
1636 | 1638 | $queryInfo['fields'][] = 'fr_quality'; |
— | — | @@ -1699,6 +1701,8 @@ |
1700 | 1702 | } |
1701 | 1703 | |
1702 | 1704 | public static function addToContribsLine( $contribs, &$ret, $row ) { |
| 1705 | + if( FlaggedRevs::stableOnlyIfConfigured() ) |
| 1706 | + return true; // don't show colors if almost nothing will be highlighted |
1703 | 1707 | $namespaces = FlaggedRevs::getReviewNamespaces(); |
1704 | 1708 | if( !in_array($row->page_namespace,$namespaces) ) { |
1705 | 1709 | // do nothing |