Nikerabbit has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/338065 )

Change subject: Fix broken site picks feature for compact language links
......................................................................


Fix broken site picks feature for compact language links

Ref T153900#3011037 and T155995

Change-Id: I429cdf330b6bf70d1710cd5a041c782e6617cb39
---
M UniversalLanguageSelector.hooks.php
1 file changed, 2 insertions(+), 4 deletions(-)

Approvals:
  Amire80: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/UniversalLanguageSelector.hooks.php 
b/UniversalLanguageSelector.hooks.php
index 0f43061..c03d0ef 100644
--- a/UniversalLanguageSelector.hooks.php
+++ b/UniversalLanguageSelector.hooks.php
@@ -331,10 +331,8 @@
                                
'/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;

-- 
To view, visit https://gerrit.wikimedia.org/r/338065
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I429cdf330b6bf70d1710cd5a041c782e6617cb39
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to