[TYPO3-core] RFC #10081: t3lib_div never die if a file is not found

Rupert Germann rupi at gmx.li
Mon Oct 19 15:37:02 CEST 2009


Hi,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=

Branches: Trunk

Problem:
user writes: "If you call the t3lib_div::readLLfile method and the file 
is not found, then the FE has completely gone.
This is the worst behaviour for a library function. It must never die!
Why do you let it die?"

;-)

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



greets
rupert


More information about the TYPO3-team-core mailing list