r45501 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45500‎ | r45501 | r45502 >
Date:13:38, 7 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 16919) Do not show the "review this revision" checkbox on article creation for sighters
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1311,10 +1311,13 @@
13121312 }
13131313
13141314 public static function addReviewCheck( $editPage, &$checkboxes, &$tabindex ) {
1315 - global $wgUser, $wgRequest;
 1315+ global $wgUser, $wgRequest, $wgFlaggedRevsAutoReviewNew;
13161316 if( !$wgUser->isAllowed('review') ) {
13171317 return true;
13181318 }
 1319+ if( $wgFlaggedRevsAutoReviewNew && !$editPage->getArticle()->getId() ) {
 1320+ return true; // not needed
 1321+ }
13191322 $fa = FlaggedArticle::getTitleInstance( $editPage->getArticle() );
13201323 if( $fa->isReviewable() ) {
13211324 $srev = $fa->getStableRev();

Status & tagging log