Project

General

Profile

Feature #18902 » 0008601.patch

Administrator Admin, 2008-06-04 09:23

View differences:

t3lib/class.t3lib_timetrack.php (working copy)
* @return string
*/
function debug_typo3PrintError($header,$text,$js,$baseUrl='') {
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_timetrack.php']['debug_typo3PrintError'])) {
$printErrorParams = array();
$fakeThis = FALSE;
$printErrorParams = array(
'text' => $text,
'header' => $header,
'js' => $js,
'baseUrl' => $baseUrl,
);
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_timetrack.php']['debug_typo3PrintError'] as $hookMethod) {
t3lib_div::callUserFunction($hookMethod, $printErrorParams, $fakeThis);
}
}
if ($js) {
echo "alert('".t3lib_div::slashJS($header."\n".$text)."');";
} else {
(1-1/3)