From: Rotem Liss Date: Sat, 18 Nov 2006 18:45:34 +0000 (+0000) Subject: (bug 7972) Add a comment to clarify the code X-Git-Tag: 1.31.0-rc.0~55149 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=78cf7e6dba2d7c2205b040f371329488dec39e02;p=lhc%2Fweb%2Fwiklou.git (bug 7972) Add a comment to clarify the code --- diff --git a/languages/Language.php b/languages/Language.php index 877ebd681d..2f00a994dc 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1546,12 +1546,13 @@ class Language { wfProfileIn( __METHOD__ ); } + # Default fallback, may be overridden when the messages file is included if ( $code != 'en' ) { $fallback = 'en'; } else { $fallback = false; } - + # Load the primary localisation from the source file $filename = self::getMessagesFileName( $code ); if ( !file_exists( $filename ) ) { @@ -1564,7 +1565,7 @@ class Language { $cache = compact( self::$mLocalisationKeys ); wfDebug( "Got localisation for $code from source\n" ); } - + if ( !empty( $fallback ) ) { # Load the fallback localisation, with a circular reference guard if ( isset( $recursionGuard[$code] ) ) {