Skip to content

Commit

Permalink
[BUGFIX] Reset Language Aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
bmack authored Nov 29, 2019
2 parents 8987277 + 9c272ab commit 57377ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Compiler/LanguageMenuCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Usage in Fluid:
</f:for>
</nav>

**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:
Expand Down Expand Up @@ -134,7 +136,7 @@ Usage in Fluid:
</f:for>
</nav>

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

Expand Down

0 comments on commit 57377ba

Please sign in to comment.