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' ) ) { if ( $this->vectorConfig->get( 'VectorResponsive' ) ) {
$this->enableResponsiveMode(); $this->enableResponsiveMode();
} }
$out->addModules( 'skins.vector.js' );
} }
/** /**
* Loads skin and user CSS files. * @inheritDoc
* @param OutputPage $out * @return array
*/ */
public function setupSkinUserCss( OutputPage $out ) { public function getDefaultModules() {
parent::setupSkinUserCss( $out ); $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( [ return $modules;
'mediawiki.skinning.interface',
'skins.vector.styles',
] );
} }
/** /**