Kill $wgRateLimitsExcludedGroups which was deprecated in 1.13
authorSam Reed <reedy@users.mediawiki.org>
Fri, 6 May 2011 21:57:55 +0000 (21:57 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 6 May 2011 21:57:55 +0000 (21:57 +0000)
includes/DefaultSettings.php
includes/User.php

index 5cbf237..b3c2049 100644 (file)
@@ -3669,17 +3669,6 @@ $wgRateLimits = array(
  */
 $wgRateLimitLog = null;
 
-/**
- * Array of groups which should never trigger the rate limiter
- *
- * @deprecated since 1.13.0, the preferred method is using
- *  $wgGroupPermissions[]['noratelimit']. However, this will still
- *  work if desired.
- *
- *  $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
- */
-$wgRateLimitsExcludedGroups = array();
-
 /**
  * Array of IPs which should be excluded from rate limits.
  * This may be useful for whitelisting NAT gateways for conferences, etc.
index 9ff846d..3ba7a95 100644 (file)
@@ -1299,12 +1299,7 @@ class User {
         * @return Bool True if rate limited
         */
        public function isPingLimitable() {
-               global $wgRateLimitsExcludedGroups;
                global $wgRateLimitsExcludedIPs;
-               if( array_intersect( $this->getEffectiveGroups(), $wgRateLimitsExcludedGroups ) ) {
-                       // Deprecated, but kept for backwards-compatibility config
-                       return false;
-               }
                if( in_array( wfGetIP(), $wgRateLimitsExcludedIPs ) ) {
                        // No other good way currently to disable rate limits
                        // for specific IPs. :P