Feature #18902 » 8601_v2.diff
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'])) {
|
||
$params = array(
|
||
'header' => $header,
|
||
'text' => $text,
|
||
'js' => $js,
|
||
'baseUrl' => $baseUrl,
|
||
);
|
||
$fakeThis = FALSE;
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_timetrack.php']['debug_typo3PrintError'] as $hookMethod) {
|
||
t3lib_div::callUserFunction($hookMethod, $params, $fakeThis);
|
||
}
|
||
}
|
||
if ($js) {
|
||
echo "alert('".t3lib_div::slashJS($header."\n".$text)."');";
|
||
} else {
|