Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -787,12 +787,10 @@ |
788 | 788 | public static function incrementRollbacks( $this, $user, $target, $current ) { |
789 | 789 | # Mark when a user reverts another user |
790 | 790 | if( $current->getRawUser() && $user->getId() != $current->getRawUser() ) { |
791 | | - global $wgFlaggedRevsAutopromote; |
792 | 791 | $p = FlaggedRevs::getUserParams( $current->getRawUser() ); |
793 | 792 | $p['revertedEdits'] = isset($p['revertedEdits']) ? $p['revertedEdits'] : 0; |
794 | 793 | $p['revertedEdits']++; |
795 | | - if( $wgFlaggedRevsAutopromote['maxRevertedEdits'] >= $p['revertedEdits'] ) |
796 | | - FlaggedRevs::saveUserParams( $current->getRawUser(), $p ); |
| 794 | + FlaggedRevs::saveUserParams( $current->getRawUser(), $p ); |
797 | 795 | } |
798 | 796 | return true; |
799 | 797 | } |