From 077bd631af889414ae4e5e682fe8ea66d219af5d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 10 Apr 2009 15:48:12 +0000 Subject: [PATCH] We already have that in $this->data['userlang'], don't need to get it from $wgLang --- skins/MonoBook.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 100d484892..3bc74c7a4d 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -374,8 +374,7 @@ class MonoBookTemplate extends QuickTemplate { } private function langAttributes() { - global $wgLang; - $languageCode = $wgLang->getCode(); + $languageCode = $this->data['userlang']; return 'lang="' . $languageCode . '" xml:lang="' . $languageCode . '"'; } } // end of class -- 2.20.1