r92791 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92790‎ | r92791 | r92792 >
Date:20:56, 21 July 2011
Author:aaron
Status:ok (Comments)
Tags:
Comment:
Use proper nosuchuser msg (fix for r86482)
Modified paths:
  • /trunk/phase3/includes/specials/SpecialChangePassword.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialChangePassword.php
@@ -207,7 +207,7 @@
208208 protected function attemptReset( $newpass, $retype ) {
209209 $user = User::newFromName( $this->mUserName );
210210 if( !$user || $user->isAnon() ) {
211 - throw new PasswordError( 'no such user' );
 211+ throw new PasswordError( wfMsg( 'nosuchusershort', $this->mUserName ) );
212212 }
213213
214214 if( $newpass !== $retype ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r93426MFT to REL1_18...hashar20:20, 28 July 2011

Comments

#Comment by Aaron Schulz (talk | contribs)   08:37, 23 July 2011

Not actually a fix for r86482, but rather older, different, code.

Status & tagging log