Commit 603c1528 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Change setLanguage to setSiteLanguage in FormsFinisher

parent b20238ab
......@@ -135,7 +135,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->getTwoLetterIsoCode());
$mailTemplateService->setSiteLanguage($siteLanguage);
$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