Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -212,8 +212,9 @@ |
213 | 213 | return false;
|
214 | 214 | }
|
215 | 215 | $dbw->commit();
|
216 | | - # Now request spamming!
|
217 | | - if( $wgAccountRequestThrottle && $wgUser->isPingLimitable() ) {
|
| 216 | + # Now request spamming.
|
| 217 | + # BC: check if isPingLimitable() exists
|
| 218 | + if( $wgAccountRequestThrottle && ( !method_exists($u,'isPingLimitable') || $wgUser->isPingLimitable() ) ) {
|
218 | 219 | $key = wfMemcKey( 'acctrequest', 'ip', wfGetIP() );
|
219 | 220 | $value = $wgMemc->incr( $key );
|
220 | 221 | if( !$value ) {
|