r24248 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24247‎ | r24248 | r24249 >
Date:19:20, 18 July 2007
Author:aaron
Status:old
Tags:
Comment:
*BC
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -212,8 +212,9 @@
213213 return false;
214214 }
215215 $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() ) ) {
218219 $key = wfMemcKey( 'acctrequest', 'ip', wfGetIP() );
219220 $value = $wgMemc->incr( $key );
220221 if( !$value ) {

Status & tagging log