mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow packages to define array variables.
Submitted-by: DanielH
This commit is contained in:
parent
f8196f1245
commit
eb72cedac6
@ -123,12 +123,22 @@ function cData($parser, $data) {
|
||||
function parse_xml_config($cffile, $rootobj, $isstring = "false") {
|
||||
global $listtags;
|
||||
$listtags = listtags();
|
||||
if (isset($GLOBALS['custom_listtags'])) {
|
||||
foreach($GLOBALS['custom_listtags'] as $tag) {
|
||||
$listtags[] = $tag;
|
||||
}
|
||||
}
|
||||
return parse_xml_config_raw($cffile, $rootobj, $isstring);
|
||||
}
|
||||
|
||||
function parse_xml_config_pkg($cffile, $rootobj, $isstring = "false") {
|
||||
global $listtags;
|
||||
$listtags = listtags_pkg();
|
||||
if (isset($GLOBALS['custom_listtags_pkg'])) {
|
||||
foreach($GLOBALS['custom_listtags_pkg'] as $tag) {
|
||||
$listtags[] = $tag;
|
||||
}
|
||||
}
|
||||
return parse_xml_config_raw($cffile, $rootobj, $isstring);
|
||||
}
|
||||
|
||||
@ -238,4 +248,4 @@ function dump_xml_config_raw($arr, $rootobj) {
|
||||
return $xmlconfig;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user