Project

General

Profile

Actions

Feature #18902

closed

Hook for debug_typo3PrintError"

Added by Tom Ruether almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-06-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.0
Tags:
Complexity:
Sprint Focus:

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

0008601.patch (982 Bytes) 0008601.patch Administrator Admin, 2008-06-04 09:23
8601_v2.diff (894 Bytes) 8601_v2.diff Administrator Admin, 2009-03-21 01:25
8601_v3.diff (1.32 KB) 8601_v3.diff Administrator Admin, 2009-05-31 18:47
Actions #1

Updated by Benni Mack over 15 years ago

Actions #2

Updated by Christian Kuhn about 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?

Actions #3

Updated by Oliver Hader about 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? ;-)

Actions #4

Updated by Benni Mack about 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.

Actions #5

Updated by Christian Kuhn almost 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.

Actions #6

Updated by Christian Kuhn almost 15 years ago

  • Committed to trunk (rev. 5638).
Actions

Also available in: Atom PDF