summaryrefslogtreecommitdiff
path: root/includes/StubObject.php
diff options
context:
space:
mode:
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 {
}
+