diff --git a/classes/MLPage.php b/classes/MLPage.php index 46bbe4d..809cb41 100644 --- a/classes/MLPage.php +++ b/classes/MLPage.php @@ -19,10 +19,9 @@ class MLPage public static function resolveMenuItem(object $item, string $url, Theme $theme): ?array { $result = CmsPage::resolveMenuItem($item, $url, $theme); + $locales = Locale::listEnabled(); - if ($result && ($page = CmsPage::loadCached($theme, $item->reference))) { - - $locales = Locale::listEnabled(); + if (count($locales) > 1 && $result && ($page = CmsPage::loadCached($theme, $item->reference))) { $defaultLocale = Locale::getDefault(); $alternateLinks = [];