[TYPO3-core] RFC: Bug 6103: EM diplays only a white page when something is wrong
Franz Holzinger
franz at ttproducts.de
Mon Dec 22 13:49:28 CET 2008
Hello Benjamin,
> 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.
Yes, this would be fine. I have improved the debug output.
- Franz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6103-1.diff
Type: text/x-patch
Size: 3290 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081222/48dce485/attachment.bin
More information about the TYPO3-team-core
mailing list