Remove ULSCompactLinksForNewAccounts and ULSCompactLinksEnableAnon

These are disabled by default and on production. They are only enabled
in the beta cluster, which is not needed.

Change-Id: Ifa847fd8a1f3d7d2695a7c1c4a1a93f136091604
This commit is contained in:
Niklas Laxström
2020-10-07 14:11:39 +02:00
committed by jenkins-bot
parent e0e69d35b2
commit 98f0bb42bd
2 changed files with 0 additions and 29 deletions

View File

@@ -64,7 +64,6 @@ class UniversalLanguageSelectorHooks {
*/
private static function isCompactLinksEnabled( User $user ) {
global $wgULSEnable, $wgInterwikiMagic,
$wgULSCompactLinksEnableAnon,
$wgHideInterlanguageLinks, $wgULSCompactLanguageLinksBetaFeature;
// Whether any user visible features are enabled
@@ -72,10 +71,6 @@ class UniversalLanguageSelectorHooks {
return false;
}
if ( $user->isAnon() && $wgULSCompactLinksEnableAnon ) {
return true;
}
if ( $wgULSCompactLanguageLinksBetaFeature === true &&
$wgInterwikiMagic === true &&
$wgHideInterlanguageLinks === false &&
@@ -96,21 +91,6 @@ class UniversalLanguageSelectorHooks {
return false;
}
/**
* Sets user preference to enable the Compact language links if the
* user account is new.
*
* To be removed once no longer needed.
* @param User $user
* @param bool $autoCreate
*/
public static function onLocalUserCreated( User $user, $autoCreate ) {
if ( RequestContext::getMain()->getConfig()->get( 'ULSCompactLinksForNewAccounts' ) ) {
$user->setOption( 'compact-language-links', 1 );
$user->saveSettings();
}
}
/**
* @param OutputPage $out
* @param Skin $skin