Remove addModules( 'ext.uls.init' )

The modules 'ext.uls.init'/'ext.uls.common' provides only a library and
no own funtionality. The modules get automatically loaded through
dependencies by other modules when needed as library. An explicit
loading on all page is not necessary. For example the MediaWiki API
help page does not have any ULS elements.

Bug: T145186
Change-Id: Ida99704ca2846e6adf154255bee3148e80c957d8
This commit is contained in:
Fomafix
2019-01-28 17:21:04 +01:00
committed by jenkins-bot
parent ea671b1f24
commit 6fadfa783b

View File

@@ -115,9 +115,6 @@ class UniversalLanguageSelectorHooks {
$out->addModules( 'ext.uls.eventlogger' );
}
// If the extension is enabled, basic features (API, language data) available.
$out->addModules( 'ext.uls.init' );
// Soft dependency to Wikibase client. Don't enable CLL if links are managed manually.
$excludedLinks = $out->getProperty( 'noexternallanglinks' );
$override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks );