Fix broken site picks feature for compact language links

Ref T153900#3011037 and T155995

Change-Id: I429cdf330b6bf70d1710cd5a041c782e6617cb39
This commit is contained in:
Niklas Laxström
2017-02-16 08:27:09 +01:00
parent cb0c1ac2bb
commit 7baa3c4a3b

View File

@@ -331,10 +331,8 @@ 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'];
if ( isset( $wgInterwikiSortingSortPrepend ) && $wgInterwikiSortingSortPrepend !== [] ) {
$vars['wgULSCompactLinksPrepend'] = $wgInterwikiSortingSortPrepend;
}
return true;