From a14ba2a1e79b695887a13df4f88038caeb32e583 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 26 Jan 2018 10:32:25 -0800 Subject: [PATCH] Deprecate 'SkinVectorStyleModules' hook Bug: T185782 Change-Id: Ie40309964797cbb5af7682d7f566fc674bc4ef12 --- SkinVector.php | 2 +- hooks.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SkinVector.php b/SkinVector.php index 5dd6ef2..7689131 100644 --- a/SkinVector.php +++ b/SkinVector.php @@ -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 ); } diff --git a/hooks.txt b/hooks.txt index 84ca7fe..57da2ce 100644 --- a/hooks.txt +++ b/hooks.txt @@ -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