r45627 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45626‎ | r45627 | r45628 >
Date:01:48, 10 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Mark reviewed contribs
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1263,6 +1263,11 @@
12641264 }
12651265
12661266 public static function addToContribsQuery( $pager, &$queryInfo ) {
 1267+ # Highlight flaggedrevs
 1268+ $queryInfo['tables'][] = 'flaggedrevs';
 1269+ $queryInfo['fields'][] = 'fr_quality';
 1270+ $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', "fr_page_id = rev_page AND fr_rev_id = rev_id" );
 1271+ # Highlight unchecked content
12671272 $queryInfo['tables'][] = 'flaggedpages';
12681273 $queryInfo['fields'][] = 'fp_stable';
12691274 $queryInfo['join_conds']['flaggedpages'] = array( 'LEFT JOIN', "fp_page_id = rev_page" );
@@ -1294,6 +1299,8 @@
12951300 global $wgFlaggedRevsNamespaces;
12961301 if( !in_array($row->page_namespace,$wgFlaggedRevsNamespaces) ) {
12971302 // do nothing
 1303+ } else if( isset($row->fr_quality) ) {
 1304+ $ret = '<span class="'.FlaggedRevsXML::getQualityColor($row->fr_quality).'">'.$ret.'</span>';
12981305 } else if( isset($row->fp_stable) && $row->rev_id > $row->fp_stable ) {
12991306 $ret = '<span class="flaggedrevs-unreviewed">'.$ret.'</span>';
13001307 } else if( !isset($row->fp_stable) ) {

Status & tagging log