summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class5
1 files 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],