Follow-up Ia268c3a49: Actually hide the BF behind a feature flag
Change-Id: I9bfbfb4512bc6d5c96cdd8e7f75056f0e26b2016
This commit is contained in:
@@ -45,7 +45,7 @@ class UniversalLanguageSelectorHooks {
|
||||
* Hook: BeforePageDisplay
|
||||
*/
|
||||
public static function addModules( $out, $skin ) {
|
||||
global $wgULSPosition, $wgULSGeoService, $wgULSEventLogging;
|
||||
global $wgULSCompactLinks, $wgULSPosition, $wgULSGeoService, $wgULSEventLogging;
|
||||
|
||||
// Load the style for users without JS, to hide the useless links
|
||||
$out->addModuleStyles( 'ext.uls.nojs' );
|
||||
@@ -337,7 +337,8 @@ class UniversalLanguageSelectorHooks {
|
||||
}
|
||||
|
||||
public static function onGetBetaFeaturePreferences( $user, &$prefs ) {
|
||||
global $wgExtensionAssetsPath;
|
||||
global $wgExtensionAssetsPath, $wgULSCompactLinks;
|
||||
if ( $wgULSCompactLinks ) {
|
||||
$prefs['uls-compact-links'] = array(
|
||||
'label-message' => 'uls-betafeature-label',
|
||||
'desc-message' => 'uls-betafeature-desc',
|
||||
@@ -349,6 +350,7 @@ class UniversalLanguageSelectorHooks {
|
||||
'https://www.mediawiki.org/wiki/Talk:Universal_Language_Selector/Design/Interlanguage_links',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook: SkinTemplateOutputPageBeforeExec
|
||||
|
||||
Reference in New Issue
Block a user