Deprecate 'SkinVectorStyleModules' hook

Bug: T185782
Change-Id: Ie40309964797cbb5af7682d7f566fc674bc4ef12
This commit is contained in:
Timo Tijhof 2018-01-26 10:32:25 -08:00
parent 1d56823f8b
commit a14ba2a1e7
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -1,7 +1,7 @@
Hooks provided by the Vector skin.
'SkinVectorStyleModules': Called when defining the list of module styles to be
loaded 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