summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/UniversalLanguageSelector/maintenance/ULSCompactLinksDisablePref.php')
-rw-r--r--MLEB/UniversalLanguageSelector/maintenance/ULSCompactLinksDisablePref.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/MLEB/UniversalLanguageSelector/maintenance/ULSCompactLinksDisablePref.php b/MLEB/UniversalLanguageSelector/maintenance/ULSCompactLinksDisablePref.php
index ef569f26..f31733b4 100644
--- a/MLEB/UniversalLanguageSelector/maintenance/ULSCompactLinksDisablePref.php
+++ b/MLEB/UniversalLanguageSelector/maintenance/ULSCompactLinksDisablePref.php
@@ -34,7 +34,9 @@ class ULSCompactLinksDisablePref extends Maintenance {
public function execute() {
$dbr = wfGetDB( DB_REPLICA, 'vslow' );
- $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
+ $services = MediaWikiServices::getInstance();
+ $lbFactory = $services->getDBLoadBalancerFactory();
+ $userOptionsManager = $services->getUserOptionsManager();
$really = $this->hasOption( 'really' );
@@ -102,7 +104,7 @@ class ULSCompactLinksDisablePref extends Maintenance {
$user->load( User::READ_LATEST );
if ( $really ) {
- $user->setOption( 'compact-language-links', 0 );
+ $userOptionsManager->setOption( $user, 'compact-language-links', 0 );
$user->saveSettings();
}