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
) {
// It's better to exit before any additional check
if ( $context->getSkin() !== 'vector' ) {
if ( !self::isVectorSkin( $context->getSkin() ) ) {
return;
}
@ -330,7 +330,7 @@ class Hooks {
public static function onSkinTemplateNavigation( $sk, &$content_navigation ) {
$title = $sk->getRelevantTitle();
if ( $sk->getSkinName() === 'vector' ) {
if ( self::isVectorSkin( $sk->getSkinName() ) ) {
if (
$sk->getConfig()->get( 'VectorUseIconWatch' ) &&
$title && $title->canExist()