From: Aaron Schulz Date: Thu, 21 Jul 2011 20:56:20 +0000 (+0000) Subject: Use proper nosuchuser msg (fix for r86482) X-Git-Tag: 1.31.0-rc.0~28694 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=0e37bfff69faa0fd97c4199d89b456b980706cf3;p=lhc%2Fweb%2Fwiklou.git Use proper nosuchuser msg (fix for r86482) --- diff --git a/includes/specials/SpecialChangePassword.php b/includes/specials/SpecialChangePassword.php index 7d7f7378b7..3004b127fe 100644 --- a/includes/specials/SpecialChangePassword.php +++ b/includes/specials/SpecialChangePassword.php @@ -207,7 +207,7 @@ class SpecialChangePassword extends SpecialPage { protected function attemptReset( $newpass, $retype ) { $user = User::newFromName( $this->mUserName ); if( !$user || $user->isAnon() ) { - throw new PasswordError( 'no such user' ); + throw new PasswordError( wfMsg( 'nosuchusershort', $this->mUserName ) ); } if( $newpass !== $retype ) {