Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -587,7 +587,7 @@ |
588 | 588 | * @param $username string The user name |
589 | 589 | * @return Bool|Integer The integer hit count or True if it is already at the limit |
590 | 590 | */ |
591 | | - public function incLoginThrottle( $username ) { |
| 591 | + public static function incLoginThrottle( $username ) { |
592 | 592 | global $wgPasswordAttemptThrottle, $wgMemc; |
593 | 593 | |
594 | 594 | $throttleCount = 0; |
— | — | @@ -614,7 +614,7 @@ |
615 | 615 | * @param $username string The user name |
616 | 616 | * @return void |
617 | 617 | */ |
618 | | - public function clearLoginThrottle( $username ) { |
| 618 | + public static function clearLoginThrottle( $username ) { |
619 | 619 | global $wgMemc; |
620 | 620 | |
621 | 621 | $throttleKey = wfMemcKey( 'password-throttle', wfGetIP(), md5( $username ) ); |