From 0e37bfff69faa0fd97c4199d89b456b980706cf3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 21 Jul 2011 20:56:20 +0000 Subject: [PATCH] Use proper nosuchuser msg (fix for r86482) --- includes/specials/SpecialChangePassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1