summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class7
1 files changed, 5 insertions, 2 deletions
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'];
+ }
}
}