Follow-up r92884: mark these functions static
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 22 Jul 2011 21:04:53 +0000 (21:04 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 22 Jul 2011 21:04:53 +0000 (21:04 +0000)
includes/specials/SpecialUserlogin.php

index 1e78eeb..8186987 100644 (file)
@@ -587,7 +587,7 @@ class LoginForm extends SpecialPage {
         * @param $username string The user name
         * @return Bool|Integer The integer hit count or True if it is already at the limit
         */
-       public function incLoginThrottle( $username ) {
+       public static function incLoginThrottle( $username ) {
                global $wgPasswordAttemptThrottle, $wgMemc;
 
                $throttleCount = 0;
@@ -614,7 +614,7 @@ class LoginForm extends SpecialPage {
         * @param $username string The user name
         * @return void
         */
-       public function clearLoginThrottle( $username ) {
+       public static function clearLoginThrottle( $username ) {
                global $wgMemc;
 
                $throttleKey = wfMemcKey( 'password-throttle', wfGetIP(), md5( $username ) );