From: Ryan Schmidt Date: Fri, 19 Dec 2008 22:29:13 +0000 (+0000) Subject: * Fix fatal error due to missing method when User::isValidPassword returns false X-Git-Tag: 1.31.0-rc.0~43875 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=b6208eb7deb5b012da4647b836753a9401fdcd62;p=lhc%2Fweb%2Fwiklou.git * Fix fatal error due to missing method when User::isValidPassword returns false --- diff --git a/includes/specials/SpecialResetpass.php b/includes/specials/SpecialResetpass.php index 8a749c3509..059f8dbd53 100644 --- a/includes/specials/SpecialResetpass.php +++ b/includes/specials/SpecialResetpass.php @@ -177,7 +177,7 @@ class SpecialResetpass extends SpecialPage { $this->mNewpass = $this->mOldpass = $this->mRetypePass = ''; } catch( PasswordError $e ) { wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'error' ) ); - $this->mainPrefsForm( 'error', $e->getMessage() ); + throw new PasswordError( $e->getMessage() ); return; }