Remove 'SkinVectorStyleModules' hook

Bug: T185782
Bug: T140664
Change-Id: I67950b4bed34b56d17bbea82f311bfe31683ad1e
This commit is contained in:
Timo Tijhof 2018-01-26 10:32:54 -08:00
parent a14ba2a1e7
commit c5d49d71fb
2 changed files with 4 additions and 8 deletions

View File

@ -80,9 +80,10 @@ class SkinVector extends SkinTemplate {
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
$styles = [ 'mediawiki.skinning.interface', 'skins.vector.styles' ];
Hooks::run( 'SkinVectorStyleModules', [ $this, &$styles ], '1.31' );
$out->addModuleStyles( $styles );
$out->addModuleStyles( [
'mediawiki.skinning.interface',
'skins.vector.styles',
] );
}
/**

View File

@ -1,10 +1,5 @@
Hooks provided by the Vector skin.
'SkinVectorStyleModules': DEPRECATED! Called when defining the list of module
styles to be loaded by the Vector skin.
$skin: SkinVector object
&$styles: Array of module names whose style will be loaded for the skin
'VectorAfterToolbox': Called after rendering the toolbox portlet (div#p-tb).
You can use this to inject items (such as ads or a hit counter, for example)
from an extension.