summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-06 22:33:15 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-06 22:33:15 -0500
commit093bcebcd38818d7f72f09e622f3412ddecc3c97 (patch)
tree15a5e2ea660b5cbf1d4fdabf3c4fda7f2c594b95 /etc/inc/pkg-utils.inc
parent26433cb8424871912ef94213976205cd16d7831c (diff)
downloadpfsense-093bcebcd38818d7f72f09e622f3412ddecc3c97.zip
pfsense-093bcebcd38818d7f72f09e622f3412ddecc3c97.tar.gz
Move newer xmlreader code to xmlreader.inc. Restore old xmlparse code to xmlparse.inc. Default to the older xmlparse.inc but add a flag check if /cf/conf/use_xmlreader is present the newer code will be included instead until the remaining bugs can be resolved with it (see rcs for many).
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 3f04edc..7775b1a 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -41,7 +41,10 @@
*/
require_once("xmlrpc.inc");
-require_once("xmlparse.inc");
+if(file_exists("/cf/conf/use_xmlreader"))
+ require_once("xmlreader.inc");
+else
+ require_once("xmlparse.inc");
require_once("service-utils.inc");
require_once("pfsense-utils.inc");
require_once("globals.inc");
OpenPOWER on IntegriCloud