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:
polishdeveloper 2020-01-24 12:50:21 +01:00 committed by Sam Smith
parent c46dbb573f
commit efe0ec6356
1 changed files with 2 additions and 2 deletions

View File

@ -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 ) {