mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 15:26:47 +00:00
Support conditional user defaults
Thanks to T321527, MediaWiki makes it possible for default values of user properties to vary by user. Depends-On: I1549c3137e66801c85e03e46427e27da333d68e2 Bug: T354329 Change-Id: Ib7c80f0b065617f9e76315eb4a652486681247cc
This commit is contained in:
parent
7cd24be30e
commit
aa13694fea
|
@ -22,7 +22,10 @@ class CentralAuthHooks implements CentralAuthIsUIReloadRecommendedHook {
|
|||
* @inheritDoc
|
||||
*/
|
||||
public function onCentralAuthIsUIReloadRecommended( User $user, bool &$recommendReload ) {
|
||||
if ( $this->userOptionsLookup->getDefaultOption( 'skin' ) === Constants::SKIN_NAME_MODERN ) {
|
||||
if (
|
||||
$this->userOptionsLookup->getDefaultOption( 'skin', $user ) ===
|
||||
Constants::SKIN_NAME_MODERN
|
||||
) {
|
||||
// Vector 2022 does not support updating the UI without reloading the page (T345112)
|
||||
$recommendReload = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue