Skip to content
Snippets Groups Projects
Commit 17a651f7 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Only call getModTSconfig in backend mode

Fixes: https://forge.typo3.org/issues/64907
parent 93fa6926
No related branches found
No related tags found
No related merge requests found
......@@ -76,9 +76,11 @@ class tinyMCE {
$languageInstance = (TYPO3_MODE === 'FE' ? $GLOBALS['TSFE'] : $GLOBALS['LANG']);
$languageKey = $languageInstance->lang;
$groupOrUserProps = t3lib_BEfunc::getModTSconfig('', 'tx_tinyMCE');
if (trim($groupOrUserProps['properties']['prefLang']) !== '') {
$languageKey = $groupOrUserProps['properties']['prefLang'];
if (TYPO3_MODE === 'BE') {
$groupOrUserProps = t3lib_BEfunc::getModTSconfig('', 'tx_tinyMCE');
if (trim($groupOrUserProps['properties']['prefLang']) !== '') {
$languageKey = $groupOrUserProps['properties']['prefLang'];
}
}
// language conversion from TLD to iso631
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment