From fb5213cdc042076d04a7725d2095c99cd06315c7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 2 Apr 2009 16:41:27 +0000 Subject: 3 stacklevels minimum --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index 61f291a..b526bcf 100644 --- a/it_html.class +++ b/it_html.class @@ -260,7 +260,7 @@ function _tag($name, $args) # debugging aid: add backtrace if (($levels = intval($GLOBALS['debug_srclines'])) && !it::match('^(head|meta|title|script)', $name)) - $attr = array('title' => it_debug::backtrace(array('levels' => $levels, 'skipfiles' => "_html\\.class"))) + $attr; + $attr = array('title' => it_debug::backtrace(array('levels' => max(3, $levels), 'skipfiles' => "_html\\.class"))) + $attr; $result .= "<$name"; -- cgit v1.2.3