Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1311,10 +1311,13 @@ |
1312 | 1312 | } |
1313 | 1313 | |
1314 | 1314 | public static function addReviewCheck( $editPage, &$checkboxes, &$tabindex ) { |
1315 | | - global $wgUser, $wgRequest; |
| 1315 | + global $wgUser, $wgRequest, $wgFlaggedRevsAutoReviewNew; |
1316 | 1316 | if( !$wgUser->isAllowed('review') ) { |
1317 | 1317 | return true; |
1318 | 1318 | } |
| 1319 | + if( $wgFlaggedRevsAutoReviewNew && !$editPage->getArticle()->getId() ) { |
| 1320 | + return true; // not needed |
| 1321 | + } |
1319 | 1322 | $fa = FlaggedArticle::getTitleInstance( $editPage->getArticle() ); |
1320 | 1323 | if( $fa->isReviewable() ) { |
1321 | 1324 | $srev = $fa->getStableRev(); |