diff --git a/includes/SkinVector.php b/includes/SkinVector.php index a64f2b7..1bb556a 100644 --- a/includes/SkinVector.php +++ b/includes/SkinVector.php @@ -62,6 +62,18 @@ class SkinVector extends SkinTemplate { } } + /** + * Called by OutputPage::headElement when it is creating the + * `` tag. Overrides method in Skin class. + * @param OutputPage $out + * @param array &$bodyAttrs + */ + public function addToBodyAttributes( $out, &$bodyAttrs ) { + if ( $this->isLegacy() ) { + $bodyAttrs['class'] .= ' skin-vector-legacy'; + } + } + /** * @inheritDoc * @return array