Don't add Vector-specific <body> classes when not using Vector
Hooks are global, unlike the old Skin addToBodyAttributes() method, which was per-skin. Follow-up toa04fc71f30
Change-Id: Ic8a581256c4775ba45b2c5188d678751ba9c7023 (cherry picked from commit3ea7bec6db
)
This commit is contained in:
parent
2ac57c85ea
commit
a57b2b67b2
|
@ -210,6 +210,10 @@ class Hooks {
|
|||
* @param string[] &$bodyAttrs
|
||||
*/
|
||||
public static function onOutputPageBodyAttributes( OutputPage $out, Skin $sk, &$bodyAttrs ) {
|
||||
if ( !$sk instanceof SkinVector ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$skinVersionLookup = new SkinVersionLookup(
|
||||
$out->getRequest(), $sk->getUser(), self::getServiceConfig()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue