Merge "Run Vector's SkinTemplateNavigation hook last"
This commit is contained in:
commit
4974d7d595
|
@ -234,6 +234,9 @@ class Hooks {
|
|||
|
||||
/**
|
||||
* Upgrades Vector's watch action to a watchstar.
|
||||
* This is invoked inside SkinVector, not via skin registration, as skin hooks
|
||||
* are not guaranteed to run last.
|
||||
* This can possibly be revised based on the outcome of T287622.
|
||||
*
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateNavigation
|
||||
* @param SkinTemplate $sk
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Vector\Constants;
|
||||
use Vector\Hooks;
|
||||
use Vector\VectorServices;
|
||||
|
||||
/**
|
||||
|
@ -307,6 +308,14 @@ class SkinVector extends SkinMustache {
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function runOnSkinTemplateNavigationHooks( SkinTemplate $skin, &$content_navigation ) {
|
||||
parent::runOnSkinTemplateNavigationHooks( $skin, $content_navigation );
|
||||
Hooks::onSkinTemplateNavigation( $skin, $content_navigation );
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"license-name": "GPL-2.0-or-later",
|
||||
"type": "skin",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.36.0"
|
||||
"MediaWiki": ">= 1.37.0"
|
||||
},
|
||||
"ValidSkinNames": {
|
||||
"vector": {
|
||||
|
@ -75,7 +75,6 @@
|
|||
"SkinPageReadyConfig": "Vector\\Hooks::onSkinPageReadyConfig",
|
||||
"GetPreferences": "Vector\\Hooks::onGetPreferences",
|
||||
"PreferencesFormPreSave": "Vector\\Hooks::onPreferencesFormPreSave",
|
||||
"SkinTemplateNavigation::Universal": "Vector\\Hooks::onSkinTemplateNavigation",
|
||||
"LocalUserCreated": "Vector\\Hooks::onLocalUserCreated",
|
||||
"OutputPageBodyAttributes": "Vector\\Hooks::onOutputPageBodyAttributes",
|
||||
"MakeGlobalVariablesScript": "Vector\\Hooks::onMakeGlobalVariablesScript"
|
||||
|
|
Loading…
Reference in New Issue