Index: trunk/extensions/FlaggedRevs/presentation/RevisionReviewFormUI.php |
— | — | @@ -153,7 +153,7 @@ |
154 | 154 | $u, $wgLang->date( $ts, true ), $wgLang->time( $ts, true ) ); |
155 | 155 | $form .= "</span>"; |
156 | 156 | // Page not under review or under review by this user... |
157 | | - } else { |
| 157 | + } elseif ( !$frev ) { // rev not already reviewed |
158 | 158 | $form .= '<span id="mw-fr-reviewing-status" style="display:none;"></span>'; // JS widget |
159 | 159 | } |
160 | 160 | $form .= "</p>\n"; |
— | — | @@ -198,9 +198,7 @@ |
199 | 199 | # Add the submit buttons |
200 | 200 | $form .= self::submitButtons( $rejectId, $frev, (bool)$disabled, $reviewIncludes ); |
201 | 201 | # Add "cancel" link |
202 | | - $form .= Linker::link( $article->getTitle(), |
203 | | - wfMsg( 'revreview-cancel' ), |
204 | | - array( 'onClick' => 'history.back(); return history.length <= 1;' ) ); |
| 202 | + $form .= Linker::link( $article->getTitle(), wfMsg( 'revreview-cancel' ) ); |
205 | 203 | |
206 | 204 | # Show stability log if there is anything interesting... |
207 | 205 | if ( $article->isPageLocked() ) { |