Skip to content

Commit

Permalink
Bugfix: Do not skip the current language in link processing
Browse files Browse the repository at this point in the history
  • Loading branch information
amenk committed Apr 4, 2020
1 parent b7aef12 commit dc1854f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions contao/classes/ImiMMChangeLanguageObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ public function translateMMUrlsV3(
return;
}

if ($targetLanguage == $GLOBALS['TL_LANGUAGE']) {
return;
}

// allow overwriting of the auto-detected definition
if (isset($GLOBALS['TL_CONFIG']['mm_changelanguage'])) {
$currentMetaModels = array_merge($currentMetaModels, $GLOBALS['TL_CONFIG']['mm_changelanguage']);
Expand Down

0 comments on commit dc1854f

Please sign in to comment.