From 086ae52d12011746a75f5588e877347bc0457352 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 21 Mar 2008 11:49:34 +0100 Subject: Update auf MediaWiki 1.12.0 --- includes/StubObject.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/StubObject.php') diff --git a/includes/StubObject.php b/includes/StubObject.php index a9a6bde9..aa72c360 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -105,7 +105,7 @@ class StubUserLang extends StubObject { $code = $wgContLanguageCode; } - if( $code == $wgContLanguageCode ) { + if( $code === $wgContLanguageCode || !Language::localisationExist( $code ) ) { return $wgContLang; } else { $obj = Language::factory( $code ); @@ -135,3 +135,4 @@ class StubUser extends StubObject { } + -- cgit v1.2.3-54-g00ecf