r44825 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44824‎ | r44825 | r44826 >
Date:02:03, 20 December 2008
Author:aaron
Status:deferred
Tags:
Comment:
Clean up message loading
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

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

Status & tagging log