CompactLinks: support sortPrepend from WikiBaseClient

Bug: T138973
Change-Id: I64b7aa37d8a6b3cac92d492a33fe6f8cb04ce0e6
This commit is contained in:
Niklas Laxström
2016-07-26 15:01:57 +02:00
committed by Nikerabbit
parent 0240e0aed6
commit 4f4051a40d
2 changed files with 23 additions and 1 deletions

View File

@@ -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;
}