Merge "Don't add Vector-specific <body> classes when not using Vector"

This commit is contained in:
jenkins-bot 2020-08-03 10:56:20 +00:00 committed by Gerrit Code Review
commit bb1f1c3fd6
1 changed files with 4 additions and 0 deletions

View File

@ -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()
);