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:
Niklas Laxström
2013-04-26 12:57:31 +00:00
committed by Gerrit Code Review
parent 60242e2c53
commit 4554c79d51
4 changed files with 84 additions and 3 deletions

View File

@@ -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;