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:
@@ -115,9 +115,6 @@ class UniversalLanguageSelectorHooks {
|
|||||||
$out->addModules( 'ext.uls.eventlogger' );
|
$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.
|
// Soft dependency to Wikibase client. Don't enable CLL if links are managed manually.
|
||||||
$excludedLinks = $out->getProperty( 'noexternallanglinks' );
|
$excludedLinks = $out->getProperty( 'noexternallanglinks' );
|
||||||
$override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks );
|
$override = is_array( $excludedLinks ) && in_array( '*', $excludedLinks );
|
||||||
|
|||||||
Reference in New Issue
Block a user