Fix fatal in r57877: can't use $this in a static function
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Oct 2009 19:47:20 +0000 (19:47 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Oct 2009 19:47:20 +0000 (19:47 +0000)
includes/User.php

index 9fd2598..ac1f7c2 100644 (file)
@@ -640,7 +640,7 @@ class User {
         * @param $password String Desired password
         * @return mixed: true on success, string of error message on failure
         */
-       static function getPasswordValidity( $password ) {
+       function getPasswordValidity( $password ) {
                global $wgMinimalPasswordLength, $wgContLang;
                
                if(!$this->isValidPassword( $password ))        {