Index: typo3/sysext/cms/tslib/class.tslib_fe.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_fe.php (revision 7217) +++ typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) @@ -2278,6 +2278,13 @@ */ function settingLanguage() { + if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess'])) { + $_params = array(); + foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess'] as $_funcRef) { + t3lib_div::callUserFunction($_funcRef, $_params, $this); + } + } + // Get values from TypoScript: $this->sys_language_uid = $this->sys_language_content = intval($this->config['config']['sys_language_uid']); list($this->sys_language_mode,$sys_language_content) = t3lib_div::trimExplode(';', $this->config['config']['sys_language_mode']); @@ -2377,6 +2384,13 @@ list($tN,$fN) = explode(':',$TF); $this->TCAcachedExtras[$tN]['l10n_mode'][$fN] = 'exclude'; } + + if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess'])) { + $_params = array(); + foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess'] as $_funcRef) { + t3lib_div::callUserFunction($_funcRef, $_params, $this); + } + } } /**