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' ) ) {
|
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',
|
|
||||||
] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue