From eb72cedac6c0a7392b9e49f7258d0667a67767ad Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 17 Aug 2006 03:37:19 +0000 Subject: [PATCH] Allow packages to define array variables. Submitted-by: DanielH --- etc/inc/xmlparse.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index a3aded3f1a..fe811b2a7f 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 +?>