From 7d271aca4751da09bd818d4f27952a4f991288c1 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 27 Jul 2010 18:52:19 +0000 Subject: [PATCH] $wgMemc at line 563 was only the global if $wgPasswordAttemptThrottle was an array Aren't globals funny? --- includes/specials/SpecialUserlogin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index c2f42799ea..4c38583f97 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -429,7 +429,8 @@ class LoginForm { * creation. */ public function authenticateUserData() { - global $wgUser, $wgAuth; + global $wgUser, $wgAuth, $wgMemc; + if ( $this->mName == '' ) { return self::NO_NAME; } @@ -457,7 +458,6 @@ class LoginForm { $count = $wgPasswordAttemptThrottle['count']; $period = $wgPasswordAttemptThrottle['seconds']; - global $wgMemc; $throttleCount = $wgMemc->get( $throttleKey ); if ( !$throttleCount ) { $wgMemc->add( $throttleKey, 1, $period ); // start counter -- 2.20.1