summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/xmlparse.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index 1e0a9e9..b5612aa 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -31,10 +31,16 @@
*/
/* tags that are always to be handled as lists */
-$listtags = explode(" ", "row config package columnitem option item fieldname field rule user key subqueue " .
- "dnsserver winsserver encryption-algorithm-option hash-algorithm-option hosts tunnel " .
- "onetoone staticmap route alias pipe queue shellcmd earlyshellcmd mobilekey " .
- "servernat proxyarpnet passthrumac allowedip wolentry vlan menu domainoverrides");
+function restore_listtags() {
+ global $listtags;
+ $listtags = explode(" ", "row config package columnitem option item fieldname field rule user key subqueue " .
+ "dnsserver winsserver encryption-algorithm-option hash-algorithm-option hosts tunnel " .
+ "onetoone staticmap route alias pipe queue shellcmd earlyshellcmd mobilekey " .
+ "service servernat proxyarpnet passthrumac allowedip wolentry vlan menu domainoverrides");
+ return;
+}
+
+restore_listtags();
function startElement($parser, $name, $attrs) {
global $parsedcfg, $depth, $curpath, $havedata, $listtags;
OpenPOWER on IntegriCloud