diff options
-rw-r--r-- | it.class | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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], |