From 47e852f2e5a1b51601e0463da29e9f91c4cb8285 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Thu, 30 Aug 2012 22:21:02 +0530 Subject: [PATCH] Fix Bug 39800 Tooltip of ULS search results should be in current UI language Change-Id: If930c2035b2bd01764d109fcb9ad8e3838fd9cb5 --- UniversalLanguageSelector.hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UniversalLanguageSelector.hooks.php b/UniversalLanguageSelector.hooks.php index b1d9b4f8..61ae2450 100644 --- a/UniversalLanguageSelector.hooks.php +++ b/UniversalLanguageSelector.hooks.php @@ -116,8 +116,7 @@ class UniversalLanguageSelectorHooks { * @return bool */ public static function addConfig( &$vars ) { - global $wgContLang, $wgULSGeoService; - $vars['wgULSLanguages'] = Language::fetchLanguageNames( $wgContLang->getCode(), 'mwfile' ); + global $wgULSGeoService; $vars['wgULSGeoService'] = $wgULSGeoService; return true; } @@ -128,6 +127,7 @@ class UniversalLanguageSelectorHooks { * @return bool */ public static function addVariables( &$vars, OutputPage $out ) { + $vars['wgULSLanguages'] = Language::fetchLanguageNames( $out->getLanguage()->getCode(), 'mwfile' ); $vars['wgULSAcceptLanguageList'] = array_keys( $out->getRequest()->getAcceptLang() ); return true; }