r60189 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60188‎ | r60189 | r60190 >
Date:22:56, 17 December 2009
Author:aaron
Status:ok
Tags:
Comment:
Removed pointless contribs highlighting for protection-like setups
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1630,6 +1630,8 @@
16311631 }
16321632
16331633 public static function addToContribsQuery( $pager, &$queryInfo ) {
 1634+ if( FlaggedRevs::stableOnlyIfConfigured() )
 1635+ return true; // don't show colors if almost nothing will be highlighted
16341636 # Highlight flaggedrevs
16351637 $queryInfo['tables'][] = 'flaggedrevs';
16361638 $queryInfo['fields'][] = 'fr_quality';
@@ -1699,6 +1701,8 @@
17001702 }
17011703
17021704 public static function addToContribsLine( $contribs, &$ret, $row ) {
 1705+ if( FlaggedRevs::stableOnlyIfConfigured() )
 1706+ return true; // don't show colors if almost nothing will be highlighted
17031707 $namespaces = FlaggedRevs::getReviewNamespaces();
17041708 if( !in_array($row->page_namespace,$namespaces) ) {
17051709 // do nothing

Status & tagging log