Use blockednoreason message when no reason for block is given, for compatibility...
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 17 May 2008 08:52:56 +0000 (08:52 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 17 May 2008 08:52:56 +0000 (08:52 +0000)
includes/SpecialUserlogin.php
languages/messages/MessagesEn.php

index 7751e7b..d849b20 100644 (file)
@@ -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 );
        }
 
index 639516d..c865d26 100644 (file)
@@ -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',