Index: trunk/phase3/includes/User.php |
— | — | @@ -1102,13 +1102,11 @@ |
1103 | 1103 | */ |
1104 | 1104 | public function isPingLimitable() { |
1105 | 1105 | global $wgRateLimitsExcludedGroups; |
1106 | | - if ( array_intersect($this->getEffectiveGroups(), $wgRateLimitsExcludedGroups) == array() || |
1107 | | - !$this->isAllowed('noratelimit') ) { |
1108 | | - return true; |
1109 | | - } |
1110 | | - else { |
| 1106 | + if( array_intersect( $this->getEffectiveGroups(), $wgRateLimitsExcludedGroups ) ) { |
| 1107 | + // Deprecated, but kept for backwards-compatibility config |
1111 | 1108 | return false; |
1112 | 1109 | } |
| 1110 | + return !$this->isAllowed('noratelimit'); |
1113 | 1111 | } |
1114 | 1112 | |
1115 | 1113 | /** |