Index: trunk/phase3/includes/specials/SpecialResetpass.php |
— | — | @@ -177,7 +177,7 @@ |
178 | 178 | $this->mNewpass = $this->mOldpass = $this->mRetypePass = ''; |
179 | 179 | } catch( PasswordError $e ) { |
180 | 180 | wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'error' ) ); |
181 | | - $this->mainPrefsForm( 'error', $e->getMessage() ); |
| 181 | + throw new PasswordError( $e->getMessage() ); |
182 | 182 | return; |
183 | 183 | } |
184 | 184 | |