From: Roan Kattouw Date: Tue, 20 Oct 2009 19:47:20 +0000 (+0000) Subject: Fix fatal in r57877: can't use $this in a static function X-Git-Tag: 1.31.0-rc.0~39213 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=8c89e9e5e79cd850b97616251a0ed6749a21da95;p=lhc%2Fweb%2Fwiklou.git Fix fatal in r57877: can't use $this in a static function --- diff --git a/includes/User.php b/includes/User.php index 9fd2598936..ac1f7c2f54 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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 )) {