From ee967d3ab83893c2f0f9f797fe5449283e1a5353 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 17 May 2008 08:52:56 +0000 Subject: [PATCH] Use blockednoreason message when no reason for block is given, for compatibility to the regular block messages. --- includes/SpecialUserlogin.php | 5 ++--- languages/messages/MessagesEn.php | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 7751e7be85..d849b20556 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -698,10 +698,9 @@ class LoginForm { $block_reason = $wgUser->mBlock->mReason; if ( strval( $block_reason ) === '' ) { - $wgOut->addWikiMsg( 'cantcreateaccount-no-reason', $ip, $blocker ); - } else { - $wgOut->addWikiMsg( 'cantcreateaccount-text', $ip, $block_reason, $blocker ); + $block_reason = wfMsg( 'blockednoreason' ); } + $wgOut->addWikiMsg( 'cantcreateaccount-text', $ip, $block_reason, $blocker ); $wgOut->returnToMain( false ); } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 639516dbd5..c865d26e24 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1154,7 +1154,6 @@ It should have less than $2, there are now $1.', 'cantcreateaccount-text' => "Account creation from this IP address ('''$1''') has been blocked by [[User:$3|$3]]. The reason given by $3 is ''$2''", -'cantcreateaccount-no-reason' => "Account creation from this IP address ('''$1''') has been blocked by [[User:$2|$2]]. No reason was given.", # History pages 'viewpagelogs' => 'View logs for this page', -- 2.20.1