Merge "Hygiene: remove SkinVector::setupSkinUserCss"

This commit is contained in:
jenkins-bot 2020-01-13 19:38:35 +00:00 committed by Gerrit Code Review
commit f40247a9d4

View file

@ -64,21 +64,20 @@ class SkinVector extends SkinTemplate {
if ( $this->vectorConfig->get( 'VectorResponsive' ) ) {
$this->enableResponsiveMode();
}
$out->addModules( 'skins.vector.js' );
}
/**
* Loads skin and user CSS files.
* @param OutputPage $out
* @inheritDoc
* @return array
*/
public function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
public function getDefaultModules() {
$modules = parent::getDefaultModules();
// add vector skin styles and vector module
$modules['styles']['skin'][] = 'mediawiki.skinning.interface';
$modules['styles']['skin'][] = 'skins.vector.styles';
$modules['core'][] = 'skins.vector.js';
$out->addModuleStyles( [
'mediawiki.skinning.interface',
'skins.vector.styles',
] );
return $modules;
}
/**