From 601f33dd781a202800d8af1d23c63feea06b8e3e Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 30 Nov 2007 15:14:45 +0000 Subject: Use it_debug::backtrace with new parameters --- it_html.class | 8 ++------ 1 file 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 = "" . $result; - } + if ($levels = intval($GLOBALS['debug_srclines'])) + $result = "" . $result; # Hack: Filter it_html and derived classes return $result; } -- cgit v1.2.3