diff --git a/filters.inc.php b/filters.inc.php index 87e580b..b83739c 100644 --- a/filters.inc.php +++ b/filters.inc.php @@ -79,10 +79,12 @@ function flt_class($val, $name, $struct, $args) if(is_string($val)) { - if(strpos($val, '@') === 0) - $val = substr($val, 1) . '.conf.js'; + $conf_path = $val; + + if(strpos($conf_path, '@') === 0) + $conf_path = substr($conf_path, 1) . '.conf.js'; - $conf_path = \taskman\config_real_path($val); + $conf_path = \taskman\config_real_path($conf_path); $lines = file($conf_path); foreach($lines as $line)