From 5d6c3bf1cb8a2742362fd30121566e1e51db642c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 3 Jun 2008 12:22:22 +0000 Subject: new formatting of ED() --- it_debug.class | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index b0f544e..23efea5 100644 --- a/it_debug.class +++ b/it_debug.class @@ -154,15 +154,18 @@ function dump($args) $r .= "$item "; else { $var = "$blue$var=$noblue"; - $r .= preg_match("/\n/", $item) ? "\n$var$item\n" : "$var$item "; + $r .= $previtem && preg_match("/\n/", $item . $previtem) ? "\n$var$item " : "$var$item "; + $previtem = $item; } } if ($GLOBALS['debug_indent']) $r = str_repeat(" ", count(debug_backtrace())-3) . $r; + $title = it_html::Q(self::backtrace(array('skiplevels' => 1))); + if (isset($_SERVER['REMOTE_ADDR']) && !$plain) - return "
$r
\n"; + return "
$r
\n"; else return "$r\n"; } -- cgit v1.2.3