r52971 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52970‎ | r52971 | r52972 >
Date:12:14, 9 July 2009
Author:aaron
Status:ok
Tags:
Comment:
Take out maxRevertedEdits for $wgFlaggedRevsAutoconfirm
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -227,7 +227,6 @@
228228 'editComments' => 20, # how many edit comments used?
229229 'email' => false, # user must be emailconfirmed?
230230 'neverBlocked' => true, # Can users that were blocked be promoted?
231 - 'maxRevertedEdits' => 5, # Max edits the user could have had rolled back?
232231 );
233232 */
234233
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1026,10 +1026,6 @@
10271027 if( $wgFlaggedRevsAutoconfirm['editComments'] > $p['editComments'] ) {
10281028 return true;
10291029 }
1030 - # Check reverted edits
1031 - if( $wgFlaggedRevsAutoconfirm['maxRevertedEdits'] < $p['revertedEdits'] ) {
1032 - return true;
1033 - }
10341030 # Check account age
10351031 if( !is_null($userage) && $userage < $wgFlaggedRevsAutoconfirm['days'] ) {
10361032 return true;

Status & tagging log