From 9460c349f967928a168cbcf004fcbb8bbf1760d8 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 19 Oct 2015 13:31:31 +0200 Subject: show top level in direct calls of it_debug::backtrace --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 6a4c387..89d5259 100644 --- a/it_debug.class +++ b/it_debug.class @@ -174,7 +174,7 @@ static function backtrace($p = array()) $p += array('levels' => 0, 'skiplevels'=> 0, 'skipfiles' => "###"); - foreach (array_slice(debug_backtrace(@constant('DEBUG_BACKTRACE_IGNORE_ARGS')), $p['skiplevels'] + 1) as $call) + foreach (array_slice(debug_backtrace(@constant('DEBUG_BACKTRACE_IGNORE_ARGS')), $p['skiplevels']) as $call) { if (($fn = $call['file']) && !it::match($p['skipfiles'], $call['file'])) { -- cgit v1.2.3