mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
Fix Yoda conditionals
Change-Id: I5074e8555154c421f4821de37c79d85e1a33d68d
This commit is contained in:
parent
0ab352856b
commit
ad6c4ea6f3
|
@ -396,7 +396,7 @@ class VectorTemplate extends BaseTemplate {
|
|||
// It should not be applied elsewhere per T253329.
|
||||
self::MENU_TYPE_DROPDOWN => 'menu vector-menu-content-list',
|
||||
];
|
||||
$isPortal = self::MENU_TYPE_PORTAL === $type;
|
||||
$isPortal = $type === self::MENU_TYPE_PORTAL;
|
||||
|
||||
// For some menu items, there is no language key corresponding with its menu key.
|
||||
// These inconsitencies are captured in MENU_LABEL_KEYS
|
||||
|
@ -408,7 +408,7 @@ class VectorTemplate extends BaseTemplate {
|
|||
'label' => $msgObj->exists() ? $msgObj->text() : $label,
|
||||
'list-classes' => $listClasses[$type] ?? 'vector-menu-content-list',
|
||||
'html-items' => '',
|
||||
'is-dropdown' => self::MENU_TYPE_DROPDOWN === $type,
|
||||
'is-dropdown' => $type === self::MENU_TYPE_DROPDOWN,
|
||||
'html-tooltip' => Linker::tooltip( 'p-' . $label ),
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue