From 98611cdd4e7a7c34ba3dcec02dd210157aeecaf1 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 22 Feb 2008 11:49:13 +0000 Subject: [PATCH] Revert r31022 -- breaks commons upload hack. --- includes/StubObject.php | 3 +-- languages/Language.php | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) 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]; -- 2.20.1