Fix Bug 39800 Tooltip of ULS search results should be in current UI language
Change-Id: If930c2035b2bd01764d109fcb9ad8e3838fd9cb5
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user