From 8ba5903579c4aeb2e108f41cf9de9df3499f5c51 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 19 Feb 2025 15:21:36 +0100 Subject: small performance boost --- it.class | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/it.class b/it.class index 03fba2d..59a0c94 100644 --- a/it.class +++ b/it.class @@ -34,9 +34,8 @@ static $error_context; # Callback, can provide $p params like 'head' and 'toscre */ static function createconfig($p = array()) { - $stack = debug_backtrace(); - $filename = $stack[0]['file']; - preg_match('!/www/((\w+)[^/]+)!', $filename, $parts); + $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); + preg_match('!/www/((\w+)[^/]+)!', $stack[0]['file'], $parts); $p += array( 'home' => $parts[0], -- cgit v1.2.3