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 authored and Gerrit Code Review committed 2013-04-28 11:26:40 +00:00
1 parent 60242e2c53
commit 4554c79d51
4 files changed
+84 -3

No files matched your search

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