diff --git a/class.tinymce.php b/class.tinymce.php index 84f5135e0114ccf69d34c70b8d068dc4c7053878..feb788d8b2f0476899289ec44773d339b18d1c1f 100644 --- a/class.tinymce.php +++ b/class.tinymce.php @@ -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