Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -573,20 +573,6 @@ |
574 | 574 | } |
575 | 575 | return true; |
576 | 576 | } |
577 | | - |
578 | | - /** |
579 | | - * @param Array $flags |
580 | | - * @returns integer, lowest rating level |
581 | | - */ |
582 | | - public static function getLCQuality( $flags ) { |
583 | | - global $wgFlaggedRevValues; |
584 | | - |
585 | | - $min = false; |
586 | | - foreach( $flags as $f => $v ) { |
587 | | - if( $min==false || $v < $min ) $min = $v; |
588 | | - } |
589 | | - return $min; |
590 | | - } |
591 | 577 | |
592 | 578 | /** |
593 | 579 | * Is this page in reviewable namespace? |
— | — | @@ -1028,8 +1014,7 @@ |
1029 | 1015 | |
1030 | 1016 | $quality = 0; |
1031 | 1017 | if( FlaggedRevs::isQuality($flags) ) { |
1032 | | - $quality = FlaggedRevs::getLCQuality($flags); |
1033 | | - $quality = ($quality > 1) ? $quality : 1; |
| 1018 | + $quality = FlaggedRevs::isPristine($flags) ? 2 : 1; |
1034 | 1019 | } |
1035 | 1020 | $flagset = $tmpset = $imgset = array(); |
1036 | 1021 | foreach( $flags as $tag => $value ) { |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php |
— | — | @@ -286,9 +286,8 @@ |
287 | 287 | $title = $rev->getTitle(); |
288 | 288 | |
289 | 289 | $quality = 0; |
290 | | - if( FlaggedRevs::isQuality($this->dims) ) { |
291 | | - $quality = FlaggedRevs::getLCQuality($this->dims); |
292 | | - $quality = ($quality > 1) ? $quality : 1; |
| 290 | + if( FlaggedRevs::isQuality($flags) ) { |
| 291 | + $quality = FlaggedRevs::isPristine($flags) ? 2 : 1; |
293 | 292 | } |
294 | 293 | // Our flags |
295 | 294 | $flagset = array(); |