Fix flt_class, return wrong val

This commit is contained in:
Madpwnhammer 2023-06-30 13:15:29 +03:00
parent 37f6de1a1a
commit 6252899428
1 changed files with 5 additions and 3 deletions

View File

@ -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)