(bug 7972) Add a comment to clarify the code
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 18 Nov 2006 18:45:34 +0000 (18:45 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 18 Nov 2006 18:45:34 +0000 (18:45 +0000)
languages/Language.php

index 877ebd6..2f00a99 100644 (file)
@@ -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] ) ) {