From 78cf7e6dba2d7c2205b040f371329488dec39e02 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 18 Nov 2006 18:45:34 +0000 Subject: [PATCH] (bug 7972) Add a comment to clarify the code --- languages/Language.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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] ) ) { -- 2.20.1