diff --git a/Classes/Controller/FormcycleController.php b/Classes/Controller/FormcycleController.php index 4969988..deae899 100644 --- a/Classes/Controller/FormcycleController.php +++ b/Classes/Controller/FormcycleController.php @@ -159,7 +159,11 @@ protected function getFcUrl(FcHelper $fch, $fcParams = '') $useui = $this->settings['xf']['useFcjQueryUi']; $usebs = $this->settings['xf']['useFcBootStrap']; $selProjectId = $this->settings['xf']['xfc_p_id']; - $frontendLang = $GLOBALS['TSFE']->sys_language_isocode ?: 'de'; + if (version_compare(TYPO3_version, '10.0.0', 'gte')) { + $frontendLang = $GLOBALS['TSFE']->getLanguage()->getTwoLetterIsoCode() ?: 'de'; + } else { + $frontendLang = $GLOBALS['TSFE']->sys_language_isocode ?: 'de'; + } $fcParams .= $this->settings['xf']['useFcUrlParams']; $fcParams = $this->resolveCustomParameters($fcParams);