r34747 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34746‎ | r34747 | r34748 >
Date:18:30, 13 May 2008
Author:aaron
Status:old
Tags:
Comment:
Return out if false, to get draft color
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -965,6 +965,8 @@
966966 * @return string, css color for this quality
967967 */
968968 public static function getQualityColor( $quality ) {
 969+ if( $quality === false )
 970+ return 'flaggedrevs-color-0';
969971 switch( $quality ) {
970972 case 2:
971973 $css = 'flaggedrevs-color-3';
@@ -972,7 +974,7 @@
973975 case 1:
974976 $css = 'flaggedrevs-color-2';
975977 break;
976 - default:
 978+ case 0:
977979 $css = 'flaggedrevs-color-1';
978980 break;
979981 }

Status & tagging log