Feature #18902
closedHook for debug_typo3PrintError"
0%
Description
It is useful for many people to change the default TYPO3 Error Messages therefore we need a Hook in the function debug_typo3PrintError.
Patchfile is attached for actual svn source 4-2.
(issue imported from #M8601)
Files
Updated by Benni Mack about 16 years ago
Hey Tom,
want to send your patch to the TYPO3 core list?
check out:
http://typo3.org/development/bug-fixing/mailing-list/
http://typo3.org/teams/core/core-mailinglist-rules/
Updated by Christian Kuhn over 15 years ago
Attached a slightly modified patch.
As I never implemented a new hook before: Is an interface a must have for new hooks?
Updated by Oliver Hader over 15 years ago
No, an interface is not a must have! It depends on the scenario if interfaces make sense or not - if you feel that the new hook might be changed soon or seems to be incomplete, better don't use hooks...
Using an interface here, that would be changed in one of the next releases will result in an error message on the error message hook - isn't that funny? ;-)
Updated by Benni Mack over 15 years ago
hey,
no, no interface required. Looks good so far, only the $fakeThis parameter is unclear to me...
Also, the $js parameter should be modifyable. 'js' => &$js
Christian, just go ahead, and send it to the core list.
Updated by Christian Kuhn over 15 years ago
Uploaded a new version that moves the hook to the bottom, to enable a hook to actually modify the default message just before outputting.