Commit 6b6bb5e6 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Partial fix for all the language issues. At least take a proper ico...

[BUGFIX] Partial fix for all the language issues. At least take a proper ico code instead of a complete obscure language value.
parent ad10ffad
......@@ -124,7 +124,7 @@ class FormsFinisher extends AbstractFinisher {
$languageId = GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('language', 'id', 0);
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId((int) $GLOBALS['TSFE']->id);
$siteLanguage = $site->getLanguageById($languageId);
$mailTemplateService->setLanguage($siteLanguage->getTypo3Language());
$mailTemplateService->setLanguage($siteLanguage->getTwoLetterIsoCode());
$mailToAddresses = trim((string) $this->parseOption('mailTo'));
if ($mailToAddresses !== '') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment