From 6fe91dfc107d55e3930d6ba4321d30a0c22ed9ff Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 19 Nov 2007 14:15:07 +0000 Subject: prepend dirname to auto_prepend.php --- 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 3aedda7..e89dc1c 100644 --- a/it_debug.class +++ b/it_debug.class @@ -179,8 +179,11 @@ function backtrace($skip = 0) { foreach (array_slice(debug_backtrace(), $skip + 1) as $call) { - if ($call['file']) - $result[] = basename($call['file']) . ":" . $call['line']; + if (($fn = $call['file'])) + { + $fn = (it::match('auto_prepend.php', $fn) ? basename(dirname($fn)) . "/" : "") . basename($fn); + $result[] = $fn . ":" . $call['line']; + } } } -- cgit v1.2.3