diff --git a/Classes/Compiler/LanguageMenuCompiler.php b/Classes/Compiler/LanguageMenuCompiler.php index 14fc248..f30400e 100644 --- a/Classes/Compiler/LanguageMenuCompiler.php +++ b/Classes/Compiler/LanguageMenuCompiler.php @@ -34,7 +34,7 @@ public function compile(ContentObjectRenderer $contentObjectRenderer, array $con return $this->cache->get($cacheIdentifier, function() use ($contentObjectRenderer, $configuration, $excludedLanguages, $targetPage) { $site = $this->getCurrentSite(); - $context = GeneralUtility::makeInstance(Context::class); + $context = clone GeneralUtility::makeInstance(Context::class); $pages = []; foreach ($site->getLanguages() as $language) { if (in_array($language->getTwoLetterIsoCode(), $excludedLanguages, true)) { diff --git a/README.md b/README.md index be49bb7..6308477 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ Usage in Fluid: +**Note**: nav_title is title if Database-Record nav_title is empty. + ### Language Menu Building a language switcher can be achieved by a few lines of code: @@ -134,7 +136,7 @@ Usage in Fluid: -Note: the languageMenu hold the siteLanguage on each item in the `language` property as an array +**Note**: the languageMenu hold the siteLanguage on each item in the `language` property as an array ### List Menu