From: Alexandre Emsenhuber Date: Fri, 10 Apr 2009 15:48:12 +0000 (+0000) Subject: We already have that in $this->data['userlang'], don't need to get it from $wgLang X-Git-Tag: 1.31.0-rc.0~42175 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=077bd631af889414ae4e5e682fe8ea66d219af5d;p=lhc%2Fweb%2Fwiklou.git We already have that in $this->data['userlang'], don't need to get it from $wgLang --- 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