diff options
author | Christian Schneider | 2019-02-20 13:48:02 +0100 |
---|---|---|
committer | Christian Schneider | 2019-02-20 13:48:02 +0100 |
commit | edc6373994744c1e304b03976c4425d46ea2ea84 (patch) | |
tree | 8c1134c8e0ac69351b937a2b79f9edbc13877fcd /it_debug.class | |
parent | d4ecb97b375b9b2ab7a1185d376da40778606f8d (diff) | |
download | itools-edc6373994744c1e304b03976c4425d46ea2ea84.tar.gz itools-edc6373994744c1e304b03976c4425d46ea2ea84.tar.bz2 itools-edc6373994744c1e304b03976c4425d46ea2ea84.zip |
Add bin/ or cgi/ to xy.php as we may have scripts in both places so 'e' command opens correct file
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 8dc12c2..f7141be 100644 --- a/it_debug.class +++ b/it_debug.class @@ -180,7 +180,7 @@ static function backtrace($p = array()) { if (($fn = $call['file']) && !it::match($p['skipfiles'], $call['file'])) { - $fn = (it::match('auto_prepend', $fn) ? basename(dirname(dirname($fn))) . "/" : "") . basename($fn); + $fn = (it::match('auto_prepend', $fn) ? basename(dirname(dirname($fn))) . "/" : (it::match('/(cgi|bin)/', $fn) ? basename(dirname($fn)) . "/" : "")) . basename($fn); $result[] = $fn . ":" . $call['line']; if (--$p['levels'] == 0) |