diff options
author | Christian Schneider | 2007-11-30 15:14:45 +0000 |
---|---|---|
committer | Christian Schneider | 2007-11-30 15:14:45 +0000 |
commit | 601f33dd781a202800d8af1d23c63feea06b8e3e (patch) | |
tree | fd96d16d1c014e48454d8232fe9ea09378b9346d /it_html.class | |
parent | d2af852a6255a9732dec24066d5e16db07252363 (diff) | |
download | itools-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.class | 8 |
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; } |