summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-22 18:54:29 +0000
committerColin Smith <colin@pfsense.org>2005-06-22 18:54:29 +0000
commitf367249fff150d455af84a8fbd788bbb3aa33049 (patch)
treeb6074c8c185b68674ad3628b872fcf4e6dbd8311 /etc/inc/pkg-utils.inc
parentd058b0be9a847773107e9508c9ff4f13c03c2dc7 (diff)
downloadpfsense-f367249fff150d455af84a8fbd788bbb3aa33049.zip
pfsense-f367249fff150d455af84a8fbd788bbb3aa33049.tar.gz
Add function to restore package specific listtags.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index ec114f6..e39b907 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -36,7 +36,13 @@ require_once("xmlrpc.inc");
require_once("xmlparse.inc");
/* add package specific listtags to XML parser */
-$listtags = array("onetoone", "queue", "rule", "servernat", "alias", "additional_files_needed", "tab", "template", "menu", "rowhelperfield", "service", "step", "package", "columnitem", "option", "item", "field", "package");
+function restore_pkg_listtags() {
+ global $listtags;
+ $listtags = array("onetoone", "queue", "rule", "servernat", "alias", "additional_files_needed", "tab", "template", "menu", "rowhelperfield", "service", "step", "package", "columnitem", "option", "item", "field", "package");
+ return;
+}
+
+restore_pkg_listtags();
require_once("pfsense-utils.inc");
require_once("globals.inc");
OpenPOWER on IntegriCloud