diff options
author | Ermal <eri@pfsense.org> | 2014-03-14 21:06:37 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-03-14 21:06:37 +0000 |
commit | 039009046557e5efc331ed13bc1c40c12b58db23 (patch) | |
tree | 50a2085467894748d8fa736e42032e08e05d52af /etc | |
parent | 6d84c956e04dd281b8c22ad8784322e29e8aa703 (diff) | |
download | pfsense-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.inc | 8 |
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); |