[TYPO3-core] RFC #10081: t3lib_div never die if a file is not found
Peter Foerger
pfoerger at gmail.com
Mon Oct 19 22:11:25 CEST 2009
Hi Rupi,
Rupert Germann schrieb:
> Solution:
> remove the die() call and add an possibility to throw an exception or
> call debug(). The newly introduced function parameter called "errorMode"
> decides which action is taken if a referenced languge file is not found:
> 0 (default) - call debug(), 1 - do nothing, 2 - throw an exception
>
+ 1 by reading and testing.
I am always in favor of strict comparisons, so 'if ($errorMode === 2)'
might be the only improvement that comes to my mind while reviewing.
~ Peter
More information about the TYPO3-team-core
mailing list