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

@@ -11,6 +11,10 @@ $resourcePaths = array(
'remoteExtPath' => 'UniversalLanguageSelector'
);
$wgResourceModules['ext.uls.languagenames'] = array(
'class' => 'ResourceLoaderULSModule'
);
$wgResourceModules['ext.uls.displaysettings'] = array(
'scripts' => 'resources/js/ext.uls.displaysettings.js',
'styles' => 'resources/css/ext.uls.displaysettings.css',
@@ -41,6 +45,7 @@ $wgResourceModules['ext.uls.init'] = array(
'monobook' => 'resources/css/ext.uls-monobook.css',
),
'dependencies' => array(
'ext.uls.languagenames',
'mediawiki.Uri',
'mediawiki.util',
'jquery.json',