diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-17 16:18:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-17 16:18:51 +0000 |
commit | 4928848f9ced44c3f1cacec2c8101036fb46a73a (patch) | |
tree | f53382bbc975cce8435b65c3a5cd1d7f0b358496 /etc/inc/xmlparse.inc | |
parent | eb72cedac6c0a7392b9e49f7258d0667a67767ad (diff) | |
download | pfsense-4928848f9ced44c3f1cacec2c8101036fb46a73a.zip pfsense-4928848f9ced44c3f1cacec2c8101036fb46a73a.tar.gz |
This one adds support for custom array types for the functions dump_xml_config* .
Submitted-by: DanielS
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r-- | etc/inc/xmlparse.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index fe811b2..a630040 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -227,12 +227,22 @@ function dump_xml_config_sub($arr, $indent) { function dump_xml_config($arr, $rootobj) { global $listtags; $listtags = listtags(); + if (isset($GLOBALS['custom_listtags'])) { + foreach($GLOBALS['custom_listtags'] as $tag) { + $listtags[] = $tag; + } + } return dump_xml_config_raw($arr, $rootobj); } function dump_xml_config_pkg($arr, $rootobj) { global $listtags; $listtags = listtags_pkg(); + if (isset($GLOBALS['custom_listtags_pkg'])) { + foreach($GLOBALS['custom_listtags_pkg'] as $tag) { + $listtags[] = $tag; + } + } return dump_xml_config_raw($arr, $rootobj); } |