r6587 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6586‎ | r6587 | r6588 >
Date:02:50, 9 December 2004
Author:zhengzhu
Status:old
Tags:
Comment:
avoid adding non-existent messages
Modified paths:
  • /branches/REL1_4/phase3/maintenance/InitialiseMessages.inc (modified) (history)

Diff [purge]

Index: branches/REL1_4/phase3/maintenance/InitialiseMessages.inc
@@ -62,7 +62,9 @@
6363 foreach( $wgLanguageNames as $code => $name) {
6464 if( $code == $wgContLanguageCode )
6565 continue;
66 - $messages[$uikey. '/' . $code] = $wgContLang->getMessage($uikey);
 66+ $msg = $wgContLang->getMessage( $uikey );
 67+ if( $msg )
 68+ $messages[$uikey. '/' . $code] = $msg;
6769 }
6870 }
6971 }

Status & tagging log