Update hook to check for new vector skin key.

Bug: T298916
Change-Id: I2946b773b8214cb277be61990df46b109a13748c
This commit is contained in:
Clare Ming 2022-01-11 16:30:03 -07:00
parent 3159664ac7
commit f4aafdd263

View file

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