Index: t3lib/class.t3lib_timetrack.php =================================================================== --- t3lib/class.t3lib_timetrack.php (revision 5517) +++ t3lib/class.t3lib_timetrack.php (working copy) @@ -572,9 +572,9 @@ */ function debug_typo3PrintError($header,$text,$js,$baseUrl='') { if ($js) { - echo "alert('".t3lib_div::slashJS($header."\n".$text)."');"; + $errorMessage = 'alert(\'' . t3lib_div::slashJS($header . '\n' . $text) . '\');'; } else { - echo ' @@ -601,6 +601,23 @@ '; } + + // Hook to modify error message + if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_timetrack.php']['debug_typo3PrintError'])) { + $params = array( + 'header' => $header, + 'text' => $text, + 'js' => $js, + 'baseUrl' => $baseUrl, + 'errorMessage' => &$errorMessage + ); + $null = null; + foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_timetrack.php']['debug_typo3PrintError'] as $hookMethod) { + t3lib_div::callUserFunction($hookMethod, $params, $null); + } + } + + echo $errorMessage; } }