Save preferred language only for named users

Bug: T337780
Change-Id: I6238ad1d64b60ec0ca62e696fed04e9742877d65
This commit is contained in:
Abijeet
2023-07-24 16:04:35 +05:30
committed by jenkins-bot
parent a923b42bdd
commit 2434939475

View File

@@ -70,7 +70,7 @@ class ApiULSSetLanguage extends ApiBase {
}
$user = $this->getUser();
if ( !$user->isRegistered() ) {
if ( !$user->isNamed() ) {
if ( $this->getConfig()->get( 'ULSAnonCanChangeLanguage' ) ) {
// Anonymous users can change language.
// Use a cookie that also can changed by JavaScript.