Commit ab5cb92d authored by Ad Schellevis's avatar Ad Schellevis

(legacy, config) add legacy glue for toArrayFromFile() into...

(legacy, config) add legacy glue for toArrayFromFile() into load_config_from_file, closes https://github.com/opnsense/core/issues/1097
parent f96a3fc0
......@@ -71,6 +71,14 @@ function alias_make_table($config)
}
}
/**
* parse config into array and return
*/
function load_config_from_file($filename)
{
return OPNsense\Core\Config::getInstance()->toArrayFromFile($filename, listtags());
}
/****f* config/parse_config
* NAME
* parse_config - Read in config.xml if needed and return $config array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment