Revert r31022 -- breaks commons upload hack.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 22 Feb 2008 11:49:13 +0000 (11:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 22 Feb 2008 11:49:13 +0000 (11:49 +0000)
includes/StubObject.php
languages/Language.php

index aa72c36..876cf50 100644 (file)
@@ -105,7 +105,7 @@ class StubUserLang extends StubObject {
                        $code = $wgContLanguageCode;
                }
 
-               if( $code === $wgContLanguageCode || !Language::localisationExist( $code ) ) {
+               if( $code === $wgContLanguageCode ) {
                        return $wgContLang;
                } else {
                        $obj = Language::factory( $code );
@@ -135,4 +135,3 @@ class StubUser extends StubObject {
 }
 
 
-
index 67ad0ca..d9aa5f5 100644 (file)
@@ -2013,10 +2013,6 @@ class Language {
                return self::getFileName( "$IP/languages/classes/Language", $code, '.php' );
        }
        
-       static function localisationExist( $code ){
-               return ( file_exists( self::getMessagesFileName( $code ) ) || file_exists( self::getClassFileName( $code ) ) ); 
-       }
-       
        static function getLocalisationArray( $code, $disableCache = false ) {
                self::loadLocalisation( $code, $disableCache );
                return self::$mLocalisationCache[$code];