summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2007-11-30 15:14:45 +0000
committerChristian Schneider2007-11-30 15:14:45 +0000
commit601f33dd781a202800d8af1d23c63feea06b8e3e (patch)
treefd96d16d1c014e48454d8232fe9ea09378b9346d /it_html.class
parentd2af852a6255a9732dec24066d5e16db07252363 (diff)
downloaditools-601f33dd781a202800d8af1d23c63feea06b8e3e.tar.gz
itools-601f33dd781a202800d8af1d23c63feea06b8e3e.tar.bz2
itools-601f33dd781a202800d8af1d23c63feea06b8e3e.zip
Use it_debug::backtrace with new parameters
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class8
1 files changed, 2 insertions, 6 deletions
diff --git a/it_html.class b/it_html.class
index 35eb273..40fb241 100644
--- a/it_html.class
+++ b/it_html.class
@@ -279,12 +279,8 @@ function _tag($name, $args)
else
$result .= " />$newline";
- if ($GLOBALS['debug_srclines'])
- {
- $trace = debug_backtrace();
- $trace = $trace[2];
- $result = "<!-- " . basename($trace['file']) . ":" . $trace['line'] . " -->" . $result;
- }
+ if ($levels = intval($GLOBALS['debug_srclines']))
+ $result = "<!-- " . it_html::Q(it_debug::backtrace(array('levels' => $levels, 'skipfiles' => "_html\\.class"))) . " -->" . $result; # Hack: Filter it_html and derived classes
return $result;
}