From f1b85bfadc73c246ad3045341101ca311966f776 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 22 Sep 2004 00:42:09 +0000 Subject: [PATCH] Fix http://bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser" message ("nosuchusershort") when an admin tries to block a non existent user. --- includes/SpecialBlockip.php | 2 +- languages/Language.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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}}", -- 2.20.1