Show 'no reason given' rather than a single apostrophe in a 'user blocked' page,...
authorRotem Liss <rotem@users.mediawiki.org>
Thu, 15 Nov 2007 14:42:20 +0000 (14:42 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Thu, 15 Nov 2007 14:42:20 +0000 (14:42 +0000)
includes/OutputPage.php
includes/Title.php
languages/messages/MessagesEn.php
languages/messages/MessagesHe.php
maintenance/language/messages.inc

index b756f55..25385f0 100644 (file)
@@ -764,6 +764,9 @@ class OutputPage {
 
                $name = User::whoIs( $wgUser->blockedBy() );
                $reason = $wgUser->blockedFor();
+               if( $reason == '' ) {
+                       $reason = wfMsg( 'blockednoreason' );
+               }
                $blockTimestamp = $wgLang->timeanddate( wfTimestamp( TS_MW, $wgUser->mBlock->mTimestamp ), true );
                $ip = wfGetIP();
 
index 712eccf..49a93ce 100644 (file)
@@ -1056,6 +1056,9 @@ class Title {
 
                        $id = $user->blockedBy();
                        $reason = $user->blockedFor();
+                       if( $reason == '' ) {
+                               $reason = wfMsg( 'blockednoreason' );
+                       }
                        $ip = wfGetIP();
 
                        if ( is_numeric( $id ) ) {
index 25511e9..d34d62d 100644 (file)
@@ -977,6 +977,7 @@ Note that you may not use the "e-mail this user" feature unless you have a valid
 registered in your [[Special:Preferences|user preferences]] and you have not been blocked from using it.
 
 Your block ID is $5. Please include this ID in any queries you make.',
+'blockednoreason'           => 'no reason given',
 'blockedoriginalsource'     => "The source of '''$1''' is 
 shown below:",
 'blockededitsource'         => "The text of '''your edits''' to '''$1''' is shown below:",
index b4771a8..7acf60e 100644 (file)
@@ -788,6 +788,7 @@ $2',
 באפשרותכם ליצור קשר עם $1 או עם כל אחד מ[[Project:מפעיל מערכת|מפעילי המערכת]] האחרים כדי לדון על החסימה.
 אינכם יכולים להשתמש בתכונת "שלחו דואר אלקטרוני למשתמש זה" אם לא ציינתם כתובת דוא"ל תקפה ב[[Special:Preferences|העדפות המשתמש שלכם]] או אם נחסמתם משליחת דוא"ל.
 מספר החסימה שלכם הוא #$5. אנא ציינו זאת בכל פנייה למפעילי המערכת.',
+'blockedreason'             => 'לא ניתנה סיבה',
 'blockedoriginalsource'     => "טקסט המקור של '''$1''' מוצג למטה:",
 'blockededitsource'         => "הטקסט של '''העריכות שלך''' לדף '''$1''' מוצג למטה:",
 'whitelistedittitle'        => 'כניסה לחשבון נדרשת לעריכה',
index 3343ed5..bbcb108 100644 (file)
@@ -461,6 +461,7 @@ $wgMessageStructure = array(
                'blockedtitle',
                'blockedtext',
                'autoblockedtext',
+               'blockednoreason',
                'blockedoriginalsource',
                'blockededitsource',
                'whitelistedittitle',