From: Antoine Musso Date: Wed, 22 Sep 2004 00:42:09 +0000 (+0000) Subject: Fix http://bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser"... X-Git-Tag: 1.5.0alpha1~1902 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=f1b85bfadc73c246ad3045341101ca311966f776;p=lhc%2Fweb%2Fwiklou.git Fix bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser" message ("nosuchusershort") when an admin tries to block a non existent user. --- diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 69d41d2c04..34fde400a1 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -126,7 +126,7 @@ class IPBlockForm { if ( $wgSysopUserBans ) { $userId = User::idFromName( $this->BlockAddress ); if ( $userId == 0 ) { - $this->showForm( wfMsg( 'nosuchuser', htmlspecialchars( $this->BlockAddress ) ) ); + $this->showForm( wfMsg( 'nosuchusershort', htmlspecialchars( $this->BlockAddress ) ) ); return; } } else { diff --git a/languages/Language.php b/languages/Language.php index 85cfa0ff87..f5a7107b0e 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -544,6 +544,7 @@ email address to them, and it can be used to send you a new password if you forg 'loginsuccess' => "You are now logged in to {{SITENAME}} as \"$1\".", 'nosuchuser' => "There is no user by the name \"$1\". Check your spelling, or use the form below to create a new user account.", +'nosuchusershort' => "There is no user by the name \"$1\". Check your spelling.", 'wrongpassword' => 'The password you entered is incorrect. Please try again.', 'mailmypassword' => 'Mail me a new password', 'passwordremindertitle' => "Password reminder from {{SITENAME}}",