From: Tim Starling Date: Fri, 22 Feb 2008 11:49:13 +0000 (+0000) Subject: Revert r31022 -- breaks commons upload hack. X-Git-Tag: 1.31.0-rc.0~49401 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=98611cdd4e7a7c34ba3dcec02dd210157aeecaf1;p=lhc%2Fweb%2Fwiklou.git Revert r31022 -- breaks commons upload hack. --- diff --git a/includes/StubObject.php b/includes/StubObject.php index aa72c36038..876cf50ec5 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -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 { } - diff --git a/languages/Language.php b/languages/Language.php index 67ad0ca28c..d9aa5f52f7 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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];