summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlparse.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-17 03:37:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-17 03:37:19 +0000
commiteb72cedac6c0a7392b9e49f7258d0667a67767ad (patch)
tree0533d37180ab248aa3bb37a7e06bb9b4b57f5d2b /etc/inc/xmlparse.inc
parentf8196f1245238455b6bc79cd876689c37ba9fd5a (diff)
downloadpfsense-eb72cedac6c0a7392b9e49f7258d0667a67767ad.zip
pfsense-eb72cedac6c0a7392b9e49f7258d0667a67767ad.tar.gz
Allow packages to define array variables.
Submitted-by: DanielH
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r--etc/inc/xmlparse.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index a3aded3..fe811b2 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -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;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud