summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-03-14 21:06:37 +0000
committerErmal <eri@pfsense.org>2014-03-14 21:06:37 +0000
commit039009046557e5efc331ed13bc1c40c12b58db23 (patch)
tree50a2085467894748d8fa736e42032e08e05d52af /etc
parent6d84c956e04dd281b8c22ad8784322e29e8aa703 (diff)
downloadpfsense-039009046557e5efc331ed13bc1c40c12b58db23.zip
pfsense-039009046557e5efc331ed13bc1c40c12b58db23.tar.gz
Make the Additional tags that may be supplied compliant with new schema
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/xmlparse.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index 098ed21..5eba494 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -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);
OpenPOWER on IntegriCloud