Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1263,6 +1263,11 @@ |
1264 | 1264 | } |
1265 | 1265 | |
1266 | 1266 | 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 |
1267 | 1272 | $queryInfo['tables'][] = 'flaggedpages'; |
1268 | 1273 | $queryInfo['fields'][] = 'fp_stable'; |
1269 | 1274 | $queryInfo['join_conds']['flaggedpages'] = array( 'LEFT JOIN', "fp_page_id = rev_page" ); |
— | — | @@ -1294,6 +1299,8 @@ |
1295 | 1300 | global $wgFlaggedRevsNamespaces; |
1296 | 1301 | if( !in_array($row->page_namespace,$wgFlaggedRevsNamespaces) ) { |
1297 | 1302 | // do nothing |
| 1303 | + } else if( isset($row->fr_quality) ) { |
| 1304 | + $ret = '<span class="'.FlaggedRevsXML::getQualityColor($row->fr_quality).'">'.$ret.'</span>'; |
1298 | 1305 | } else if( isset($row->fp_stable) && $row->rev_id > $row->fp_stable ) { |
1299 | 1306 | $ret = '<span class="flaggedrevs-unreviewed">'.$ret.'</span>'; |
1300 | 1307 | } else if( !isset($row->fp_stable) ) { |