mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Merge "Hygiene: remove SkinVector::setupSkinUserCss"
This commit is contained in:
commit
f40247a9d4
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue