Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -559,7 +559,9 @@ |
560 | 560 | $wgLogActions['review/approve-i'] = 'review-logentry-app'; // sighted (first time) |
561 | 561 | $wgLogActions['review/approve2-i'] = 'review-logentry-app'; // quality (first time) |
562 | 562 | $wgLogActions['review/approve-a'] = 'review-logentry-app'; // sighted (auto) |
| 563 | +$wgLogActions['review/approve2-a'] = 'review-logentry-app'; // quality (auto) |
563 | 564 | $wgLogActions['review/approve-ia'] = 'review-logentry-app'; // sighted (initial & auto) |
| 565 | +$wgLogActions['review/approve2-ia'] = 'review-logentry-app'; // quality (initial & auto) |
564 | 566 | $wgLogActions['review/unapprove'] = 'review-logentry-dis'; // was sighted |
565 | 567 | $wgLogActions['review/unapprove2'] = 'review-logentry-dis'; // was quality |
566 | 568 | |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -1510,7 +1510,7 @@ |
1511 | 1511 | if ( !is_array( $flags ) ) { |
1512 | 1512 | if ( $oldSv ) { // use the last stable version if $flags not given |
1513 | 1513 | if( $user->isAllowed( 'bot' ) ) { |
1514 | | - $flags = $oldSv->getTags(); // no change for bots |
| 1514 | + $flags = $oldSv->getTags(); // no change for bot edits |
1515 | 1515 | } else { |
1516 | 1516 | $flags = self::getAutoReviewTags( $oldSv->getQuality() /* available */ ); |
1517 | 1517 | } |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsLogs.php |
— | — | @@ -6,9 +6,7 @@ |
7 | 7 | * $action is a valid review log action |
8 | 8 | */ |
9 | 9 | public static function isReviewAction( $action ) { |
10 | | - return in_array( $action, |
11 | | - array( 'approve', 'approve2', 'approve-a', 'approve2-a', 'unapprove', 'unapprove2' ) |
12 | | - ); |
| 10 | + return preg_match( '/^(approve2?(-i|-a|-ia)?|unapprove2?)$/', $action ); |
13 | 11 | } |
14 | 12 | |
15 | 13 | /** |