CompactLinks: support sortPrepend from WikiBaseClient
Bug: T138973 Change-Id: I64b7aa37d8a6b3cac92d492a33fe6f8cb04ce0e6
This commit is contained in:
committed by
Nikerabbit
parent
0240e0aed6
commit
4f4051a40d
@@ -311,7 +311,8 @@ class UniversalLanguageSelectorHooks {
|
||||
$wgULSEventLogging,
|
||||
$wgULSImeSelectors, $wgULSNoImeSelectors,
|
||||
$wgULSFontRepositoryBasePath,
|
||||
$wgExtensionAssetsPath;
|
||||
$wgExtensionAssetsPath,
|
||||
$wgWBClientSettings;
|
||||
|
||||
// Place constant stuff here (not depending on request context)
|
||||
if ( is_string( $wgULSGeoService ) ) {
|
||||
@@ -334,6 +335,12 @@ class UniversalLanguageSelectorHooks {
|
||||
'/UniversalLanguageSelector/data/fontrepo/fonts/';
|
||||
}
|
||||
|
||||
// Cannot check where whether CLL is enabled for a particular user. The overhead
|
||||
// of including this data is small.
|
||||
if ( isset( $wgWBClientSettings['sortPrepend'] ) ) {
|
||||
$vars['wgULSCompactLinksPrepend'] = $wgWBClientSettings['sortPrepend'];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user