From 3c524c5306085ebdbf112937e11d2751fca51d4d Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 20 Oct 2008 12:52:54 +0000 Subject: validate when srclines is on --- 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 38dae0a..6da0b62 100644 --- a/it_html.class +++ b/it_html.class @@ -259,7 +259,7 @@ function _tag($name, $args) $data = str_replace("\n", "\n ", "\n" . trim($data)) . "\n"; # debugging aid: add backtrace - if ($levels = intval($GLOBALS['debug_srclines'])) + 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; $result .= "<$name"; -- cgit v1.2.3