summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
authorUrban Müller2007-11-19 14:15:07 +0000
committerUrban Müller2007-11-19 14:15:07 +0000
commit6fe91dfc107d55e3930d6ba4321d30a0c22ed9ff (patch)
tree11f0c2750150436e1eeae06e69e61b5b28008ed5 /it_debug.class
parent93169343187a0ba1f09a19ca797e9de586f59a8e (diff)
downloaditools-6fe91dfc107d55e3930d6ba4321d30a0c22ed9ff.tar.gz
itools-6fe91dfc107d55e3930d6ba4321d30a0c22ed9ff.tar.bz2
itools-6fe91dfc107d55e3930d6ba4321d30a0c22ed9ff.zip
prepend dirname to auto_prepend.php
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'];
+ }
}
}