summaryrefslogtreecommitdiff
path: root/includes/StubObject.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
commit086ae52d12011746a75f5588e877347bc0457352 (patch)
treee73263c7a29d0f94fafb874562610e16eb292ba8 /includes/StubObject.php
parent749e7fb2bae7bbda855de3c9e319435b9f698ff7 (diff)
Update auf MediaWiki 1.12.0
Diffstat (limited to 'includes/StubObject.php')
-rw-r--r--includes/StubObject.php3
1 files changed, 2 insertions, 1 deletions
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 {
}
+