diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-22 18:53:19 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-22 18:53:19 +0000 |
commit | 9aa2b02849420dcc6e5e7696669e306b15ae2709 (patch) | |
tree | a86f5e037754c3c2157589885fdaff8739713828 /etc/inc | |
parent | 36e6b276d821235bb3dd65ba876db5c96fb1c5f7 (diff) | |
download | pfsense-9aa2b02849420dcc6e5e7696669e306b15ae2709.zip pfsense-9aa2b02849420dcc6e5e7696669e306b15ae2709.tar.gz |
Add function to restore global listtags.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/xmlparse.inc | 14 |
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; |