mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Deprecation: Deprecate Vector specific hooks
Vector provides two vector specific hooks: - VectorAfterToolbox - VectorBeforeToolbox Instead of supporting Vector specific stuff we should aim for a nice global skin api and allow other 3rd party to extend MediaWiki functionality no matter which skin is currently on. Bug: T240062 Change-Id: I245f1316e79f814ba04f4e0a0223d4f0596cf39e
This commit is contained in:
parent
c46dbb573f
commit
efe0ec6356
|
@ -70,7 +70,7 @@ class VectorTemplate extends BaseTemplate {
|
|||
}
|
||||
|
||||
ob_start();
|
||||
Hooks::run( 'VectorBeforeFooter' );
|
||||
Hooks::run( 'VectorBeforeFooter', [], '1.35' );
|
||||
$htmlHookVectorBeforeFooter = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
@ -235,7 +235,7 @@ class VectorTemplate extends BaseTemplate {
|
|||
break;
|
||||
case 'TOOLBOX':
|
||||
$this->renderPortal( 'tb', $this->getToolbox(), 'toolbox', 'SkinTemplateToolboxEnd' );
|
||||
Hooks::run( 'VectorAfterToolbox' );
|
||||
Hooks::run( 'VectorAfterToolbox', [], '1.35' );
|
||||
break;
|
||||
case 'LANGUAGES':
|
||||
if ( $this->data['language_urls'] !== false ) {
|
||||
|
|
Loading…
Reference in a new issue