Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1268,8 +1268,6 @@ |
1269 | 1269 | if( !$wgUser->isAllowed('review') ) { |
1270 | 1270 | return true; |
1271 | 1271 | } |
1272 | | - $checkboxes['reviewed'] = ''; |
1273 | | - $reviewLabel = wfMsgExt('revreview-flag', array('parseinline')); |
1274 | 1272 | $fa = FlaggedArticle::getTitleInstance( $editPage->getArticle() ); |
1275 | 1273 | if( $fa->isReviewable() ) { |
1276 | 1274 | $srev = $fa->getStableRev(); |
— | — | @@ -1277,6 +1275,9 @@ |
1278 | 1276 | # the user decide if he/she wants it reviewed on the spot. One might |
1279 | 1277 | # do this if he/she just saw the diff-to-stable and *then* decided to edit. |
1280 | 1278 | if( !$srev || $srev->getRevId() != $editPage->getArticle()->getLatest() ) { |
| 1279 | + wfLoadExtensionMessages( 'FlaggedRevs' ); |
| 1280 | + $checkboxes['reviewed'] = ''; |
| 1281 | + $reviewLabel = wfMsgExt('revreview-flag', array('parseinline')); |
1281 | 1282 | $attribs = array( 'tabindex' => ++$tabindex, 'id' => 'wpReviewEdit' ); |
1282 | 1283 | $checkboxes['reviewed'] = Xml::check( 'wpReviewEdit', |
1283 | 1284 | $wgRequest->getCheck('wpReviewEdit'), $attribs ) . |