From f0d6b3b5f72faa99587de8f37e0e5264ce278dde Mon Sep 17 00:00:00 2001 From: Luke Holder Date: Fri, 16 Feb 2024 18:43:42 +0800 Subject: [PATCH] Stricter type comparison --- src/templates/_layouts/elementindex.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/_layouts/elementindex.twig b/src/templates/_layouts/elementindex.twig index 39b61ccebf8..0cab4d7b155 100644 --- a/src/templates/_layouts/elementindex.twig +++ b/src/templates/_layouts/elementindex.twig @@ -11,7 +11,7 @@ {% set sources = craft.app.elementSources.getSources(elementType, 'index', true) %} {% set showSiteMenu = (craft.app.getIsMultiSite() ? (showSiteMenu ?? 'auto') : false) %} -{% if showSiteMenu == 'auto' %} +{% if showSiteMenu is same as ('auto') %} {% set showSiteMenu = elementInstance.isLocalized() %} {% endif %}