r17791 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17790‎ | r17791 | r17792 >
Date:18:45, 18 November 2006
Author:rotem
Status:old
Tags:
Comment:
(bug 7972) Add a comment to clarify the code
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1546,12 +1546,13 @@
15471547 wfProfileIn( __METHOD__ );
15481548 }
15491549
 1550+ # Default fallback, may be overridden when the messages file is included
15501551 if ( $code != 'en' ) {
15511552 $fallback = 'en';
15521553 } else {
15531554 $fallback = false;
15541555 }
1555 -
 1556+
15561557 # Load the primary localisation from the source file
15571558 $filename = self::getMessagesFileName( $code );
15581559 if ( !file_exists( $filename ) ) {
@@ -1564,7 +1565,7 @@
15651566 $cache = compact( self::$mLocalisationKeys );
15661567 wfDebug( "Got localisation for $code from source\n" );
15671568 }
1568 -
 1569+
15691570 if ( !empty( $fallback ) ) {
15701571 # Load the fallback localisation, with a circular reference guard
15711572 if ( isset( $recursionGuard[$code] ) ) {