From 8c89e9e5e79cd850b97616251a0ed6749a21da95 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 20 Oct 2009 19:47:20 +0000 Subject: [PATCH] Fix fatal in r57877: can't use $this in a static function --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )) { -- 2.20.1