Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -1394,20 +1394,23 @@ |
1395 | 1395 | if ( !isset( $row->fr_quality ) ) { |
1396 | 1396 | return array( "", "" ); // not reviewed |
1397 | 1397 | } |
1398 | | - $css = FlaggedRevsXML::getQualityColor( $row->fr_quality ); |
| 1398 | + $liCss = FlaggedRevsXML::getQualityColor( $row->fr_quality ); |
1399 | 1399 | $user = User::whois( $row->fr_user ); // FIXME: o(N) |
1400 | 1400 | $flags = explode( ',', $row->fr_flags ); |
1401 | 1401 | if ( in_array( 'auto', $flags ) ) { |
1402 | 1402 | $msg = 'revreview-hist-autoreviewed'; |
| 1403 | + $css = 'fr-hist-autoreviewed'; |
| 1404 | + } elseif( $row->fr_quality >= 1 ) { |
| 1405 | + $msg = 'revreview-hist-quality-user'; |
| 1406 | + $css = 'fr-hist-quality-user'; |
1403 | 1407 | } else { |
1404 | | - $msg = ( $row->fr_quality >= 1 ) |
1405 | | - ? 'revreview-hist-quality-user' |
1406 | | - : 'revreview-hist-basic-user'; |
| 1408 | + $msg = 'revreview-hist-basic-user'; |
| 1409 | + $css = 'fr-hist-basic-user'; |
1407 | 1410 | } |
1408 | 1411 | $st = $title->getPrefixedDBkey(); |
1409 | | - $link = "<span class='fr-$msg plainlinks'>[" . |
| 1412 | + $link = "<span class='$css plainlinks'>[" . |
1410 | 1413 | wfMsgExt( $msg, array( 'parseinline' ), $st, $row->rev_id, $user ) . "]</span>"; |
1411 | | - return array( $link, $css ); |
| 1414 | + return array( $link, $liCss ); |
1412 | 1415 | } |
1413 | 1416 | |
1414 | 1417 | /** |
— | — | @@ -1506,7 +1509,11 @@ |
1507 | 1510 | # Normally, this should already be done and given here... |
1508 | 1511 | if ( !is_array( $flags ) ) { |
1509 | 1512 | if ( $oldSv ) { // use the last stable version if $flags not given |
1510 | | - $flags = self::getAutoReviewTags( $oldSv->getQuality() /* available */ ); |
| 1513 | + if( $user->isAllowed( 'bot' ) ) { |
| 1514 | + $flags = $oldSv->getTags(); // no change for bots |
| 1515 | + } else { |
| 1516 | + $flags = self::getAutoReviewTags( $oldSv->getQuality() /* available */ ); |
| 1517 | + } |
1511 | 1518 | } else { // new page? use minimal level |
1512 | 1519 | $flags = self::getAutoReviewTags( FR_SIGHTED ); |
1513 | 1520 | } |