monobook-responsive pref: Follow core preference if set

If the general skin-responsive setting is set, let it overide
monobook-responsive preferences

Eventually remove monobook-responsive when the affected users
have migrated to the general pref (or they're migrated, if necessary)

Bug: T285402
Depends-On: I4e567199a92c0492dac0561a5c7844f6c5c239e6
Change-Id: If6e405eaf1e4c3ac396fdcf2da31501ea3f65b53
This commit is contained in:
Ammarpad 2021-06-28 21:30:24 +01:00
parent ee59005150
commit 2f82aabd68

View file

@ -39,7 +39,7 @@ class SkinMonoBook extends SkinTemplate {
* @return bool
*/
public function isResponsive() {
return $this->getUser()->getOption( 'monobook-responsive' );
return parent::isResponsive() || $this->getUser()->getOption( 'monobook-responsive' );
}
/**