r26527 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26526‎ | r26527 | r26528 >
Date:03:45, 9 October 2007
Author:aaron
Status:old
Tags:
Comment:
*opps, latest version was on test server, updating and committing
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -142,7 +142,7 @@
143143 return;
144144 }
145145 # No request spamming...
146 - if( $wgAccountRequestThrottle && ( !method_exists($u,'isPingLimitable') || $wgUser->isPingLimitable() ) ) {
 146+ if( $wgAccountRequestThrottle && ( !method_exists($wgUser,'isPingLimitable') || $wgUser->isPingLimitable() ) ) {
147147 $key = wfMemcKey( 'acctrequest', 'ip', wfGetIP() );
148148 $value = $wgMemc->get( $key );
149149 if( $value > $wgAccountRequestThrottle ) {
@@ -220,16 +220,12 @@
221221 $dbw->commit();
222222 # No request spamming...
223223 # BC: check if isPingLimitable() exists
224 - if( $wgAccountRequestThrottle && ( !method_exists($u,'isPingLimitable') || $wgUser->isPingLimitable() ) ) {
 224+ if( $wgAccountRequestThrottle && ( !method_exists($wgUser,'isPingLimitable') || $wgUser->isPingLimitable() ) ) {
225225 $key = wfMemcKey( 'acctrequest', 'ip', wfGetIP() );
226226 $value = $wgMemc->incr( $key );
227227 if( !$value ) {
228228 $wgMemc->set( $key, 1, 86400 );
229229 }
230 - if( $value > $wgAccountRequestThrottle ) {
231 - $this->throttleHit( $wgAccountRequestThrottle );
232 - return;
233 - }
234230 }
235231 # Done!
236232 $this->showSuccess();

Status & tagging log