mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 01:09:20 +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
|
||||
) {
|
||||
// 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()
|
||||
|
|
Loading…
Reference in a new issue