Load ULS language list from a resource loader module
Having them in the page source of every page view is wasteful. Bug: 41210 Change-Id: If15e297a4781cc49ded06fbc906529f57a22aafe
This commit is contained in:
committed by
Gerrit Code Review
parent
60242e2c53
commit
4554c79d51
@@ -281,9 +281,6 @@ class UniversalLanguageSelectorHooks {
|
||||
*/
|
||||
public static function addVariables( &$vars, OutputPage $out ) {
|
||||
// Place request context dependent stuff here
|
||||
$vars['wgULSLanguages'] = Language::fetchLanguageNames(
|
||||
$out->getLanguage()->getCode(), 'mwfile'
|
||||
);
|
||||
$vars['wgULSAcceptLanguageList'] = array_keys( $out->getRequest()->getAcceptLang() );
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user