r57303 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57302‎ | r57303 | r57304 >
Date:19:13, 2 October 2009
Author:aaron
Status:ok
Tags:
Comment:
Follow up r57300: Cleaned up wpReviewthis box
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1920,7 +1920,10 @@
19211921 $output .= "</table>"; // expiry table end
19221922 # Add "review this page" checkbox
19231923 $reviewLabel = wfMsgExt( 'stabilization-review', array('parseinline') );
1924 - $output .= Xml::checkLabel( $reviewLabel, 'wpReviewthis', $reviewThis, array('id'=>'wpReviewthis') );
 1924+ if( $wgUser->isAllowed('review') ) {
 1925+ $output .= Xml::checkLabel( $reviewLabel, 'wpReviewthis', 'wpReviewthis',
 1926+ $reviewThis, $disabledAttrib );
 1927+ }
19251928 # Close field set and table row
19261929 $output .= Xml::closeElement( 'fieldset' );
19271930 $output .= "</td></tr>";

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r57300* Added $wgFlaggedRevsProtectLevels to allow for site defined review "protect...aaron18:46, 2 October 2009

Status & tagging log