r1548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1547‎ | r1548 | r1549 >
Date:04:15, 10 August 2003
Author:vibber
Status:old
Tags:
Comment:
Missing fallback for messages
Modified paths:
  • /branches/stable/phase3/languages/LanguageZh.php (modified) (history)

Diff [purge]

Index: branches/stable/phase3/languages/LanguageZh.php
@@ -1223,7 +1223,10 @@
12241224 function getMessage( $key )
12251225 {
12261226 global $wgAllMessagesZh;
1227 - return $wgAllMessagesZh[$key];
 1227+ if($msg = $wgAllMessagesZh[$key])
 1228+ return $msg;
 1229+ else
 1230+ return Language::getMessage( $key );
12281231 }
12291232
12301233 # inherit default iconv(), ucfirst(), checkTitleEncoding()

Status & tagging log