From 7baa3c4a3b56bed93827c98e7323dcc9f7fb1526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 16 Feb 2017 08:27:09 +0100 Subject: [PATCH] Fix broken site picks feature for compact language links Ref T153900#3011037 and T155995 Change-Id: I429cdf330b6bf70d1710cd5a041c782e6617cb39 --- UniversalLanguageSelector.hooks.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UniversalLanguageSelector.hooks.php b/UniversalLanguageSelector.hooks.php index 0f430617..c03d0ef7 100644 --- a/UniversalLanguageSelector.hooks.php +++ b/UniversalLanguageSelector.hooks.php @@ -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;