[TYPO3-core] RFC: Bug 6103: EM diplays only a white page when something is wrong
Benjamin Mack
benni at typo3.org
Fri Jul 25 13:16:51 CEST 2008
Hey Franz,
I checked your patch and have a question about this part.
+function displayErrors($errortext='') {
+ global $TYPO3_CONF_VARS;
+
+ if (isset($TYPO3_CONF_VARS['SYS']) && is_array($TYPO3_CONF_VARS['SYS'])) {
+ $displayErrors = intval($TYPO3_CONF_VARS['SYS']['displayErrors']);
+ }
couldn't we just do a
$displayErrors =
(isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors']) ?
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] : 0);
Rest looks good so far.
--
greetings,
benni.
-SDG-
More information about the TYPO3-team-core
mailing list