mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Merge "Don't add Vector-specific <body> classes when not using Vector"
This commit is contained in:
commit
bb1f1c3fd6
|
@ -210,6 +210,10 @@ class Hooks {
|
||||||
* @param string[] &$bodyAttrs
|
* @param string[] &$bodyAttrs
|
||||||
*/
|
*/
|
||||||
public static function onOutputPageBodyAttributes( OutputPage $out, Skin $sk, &$bodyAttrs ) {
|
public static function onOutputPageBodyAttributes( OutputPage $out, Skin $sk, &$bodyAttrs ) {
|
||||||
|
if ( !$sk instanceof SkinVector ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$skinVersionLookup = new SkinVersionLookup(
|
$skinVersionLookup = new SkinVersionLookup(
|
||||||
$out->getRequest(), $sk->getUser(), self::getServiceConfig()
|
$out->getRequest(), $sk->getUser(), self::getServiceConfig()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue