From: Tim Starling Date: Sat, 26 Jun 2004 04:10:48 +0000 (+0000) Subject: bug fixes for throttle feature X-Git-Tag: 1.5.0alpha1~2769 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=2d1f9365aa29362779c807e765663e811021375b;p=lhc%2Fweb%2Fwiklou.git bug fixes for throttle feature --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index d98f6bc111..700cf6cf49 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -132,10 +132,10 @@ class LoginForm { $key = "$wgDBname:acctcreate:ip:$wgIP"; $value = $wgMemc->incr( $key ); if ( !$value ) { - $wgMemc->set( $key, 0, 86400 ); + $wgMemc->set( $key, 1, 86400 ); } - if ( $value > $wgAccountCreationThrottle ) ) { - $this->throttleHit(); + if ( $value > $wgAccountCreationThrottle ) { + $this->throttleHit( $wgAccountCreationThrottle ); return; } }