Revert r31022 -- breaks commons upload hack.
This commit is contained in:
parent
d09bdbd91d
commit
98611cdd4e
2 changed files with 1 additions and 6 deletions
|
|
@ -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 {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue