mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make the Additional tags that may be supplied compliant with new schema
This commit is contained in:
parent
6d84c956e0
commit
0390090465
@ -145,7 +145,7 @@ function parse_xml_config($cffile, $rootobj, $isstring = "false") {
|
||||
$listtags = listtags();
|
||||
if (isset($GLOBALS['custom_listtags'])) {
|
||||
foreach($GLOBALS['custom_listtags'] as $tag) {
|
||||
$listtags[] = $tag;
|
||||
$listtags[$tag] = $tag;
|
||||
}
|
||||
}
|
||||
return parse_xml_config_raw($cffile, $rootobj, $isstring);
|
||||
@ -156,7 +156,7 @@ function parse_xml_config_pkg($cffile, $rootobj, $isstring = "false") {
|
||||
$listtags = listtags_pkg();
|
||||
if (isset($GLOBALS['custom_listtags_pkg'])) {
|
||||
foreach($GLOBALS['custom_listtags_pkg'] as $tag) {
|
||||
$listtags[] = $tag;
|
||||
$listtags[$tag] = $tag;
|
||||
}
|
||||
}
|
||||
$cfg =parse_xml_config_raw($cffile, $rootobj, $isstring);
|
||||
@ -294,7 +294,7 @@ function dump_xml_config($arr, $rootobj) {
|
||||
$listtags = listtags();
|
||||
if (isset($GLOBALS['custom_listtags'])) {
|
||||
foreach($GLOBALS['custom_listtags'] as $tag) {
|
||||
$listtags[] = $tag;
|
||||
$listtags[$tag] = $tag;
|
||||
}
|
||||
}
|
||||
return dump_xml_config_raw($arr, $rootobj);
|
||||
@ -305,7 +305,7 @@ function dump_xml_config_pkg($arr, $rootobj) {
|
||||
$listtags = listtags_pkg();
|
||||
if (isset($GLOBALS['custom_listtags_pkg'])) {
|
||||
foreach($GLOBALS['custom_listtags_pkg'] as $tag) {
|
||||
$listtags[] = $tag;
|
||||
$listtags[$tag] = $tag;
|
||||
}
|
||||
}
|
||||
return dump_xml_config_raw($arr, $rootobj);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user