Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | } |
96 | 96 | |
97 | 97 | if ( $wgUser->isAllowed( 'codereview-set-status' ) && |
98 | | - $revObjects && $revObjects[0]->isValidStatus( $status ) ) { |
| 98 | + $revObjects && CodeRevision::isValidStatus( $status ) ) { |
99 | 99 | foreach ( $revObjects as $rev ) { |
100 | 100 | $rev->setStatus( $status, $wgUser ); |
101 | 101 | } |