Use proper nosuchuser msg (fix for r86482)
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 21 Jul 2011 20:56:20 +0000 (20:56 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 21 Jul 2011 20:56:20 +0000 (20:56 +0000)
includes/specials/SpecialChangePassword.php

index 7d7f737..3004b12 100644 (file)
@@ -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 ) {