mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 11:15:33 +00:00
Update hook to check for new vector skin key.
Bug: T298916 Change-Id: I2946b773b8214cb277be61990df46b109a13748c
This commit is contained in:
parent
3159664ac7
commit
f4aafdd263
|
@ -121,7 +121,7 @@ class Hooks {
|
||||||
array &$config
|
array &$config
|
||||||
) {
|
) {
|
||||||
// It's better to exit before any additional check
|
// It's better to exit before any additional check
|
||||||
if ( $context->getSkin() !== 'vector' ) {
|
if ( !self::isVectorSkin( $context->getSkin() ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ class Hooks {
|
||||||
public static function onSkinTemplateNavigation( $sk, &$content_navigation ) {
|
public static function onSkinTemplateNavigation( $sk, &$content_navigation ) {
|
||||||
$title = $sk->getRelevantTitle();
|
$title = $sk->getRelevantTitle();
|
||||||
|
|
||||||
if ( $sk->getSkinName() === 'vector' ) {
|
if ( self::isVectorSkin( $sk->getSkinName() ) ) {
|
||||||
if (
|
if (
|
||||||
$sk->getConfig()->get( 'VectorUseIconWatch' ) &&
|
$sk->getConfig()->get( 'VectorUseIconWatch' ) &&
|
||||||
$title && $title->canExist()
|
$title && $title->canExist()
|
||||||
|
|
Loading…
Reference in a new issue