r45628 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45627‎ | r45628 | r45629 >
Date:01:54, 10 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Keep tally going rather than stopping before it can matter
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -787,12 +787,10 @@
788788 public static function incrementRollbacks( $this, $user, $target, $current ) {
789789 # Mark when a user reverts another user
790790 if( $current->getRawUser() && $user->getId() != $current->getRawUser() ) {
791 - global $wgFlaggedRevsAutopromote;
792791 $p = FlaggedRevs::getUserParams( $current->getRawUser() );
793792 $p['revertedEdits'] = isset($p['revertedEdits']) ? $p['revertedEdits'] : 0;
794793 $p['revertedEdits']++;
795 - if( $wgFlaggedRevsAutopromote['maxRevertedEdits'] >= $p['revertedEdits'] )
796 - FlaggedRevs::saveUserParams( $current->getRawUser(), $p );
 794+ FlaggedRevs::saveUserParams( $current->getRawUser(), $p );
797795 }
798796 return true;
799797 }

Status & tagging log