summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-10 17:16:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-10 17:16:01 +0000
commit8797aa328b6cee2579b9dcb3d557b6171984936b (patch)
tree8463e391e94ab23121cada700f8fa6350f2802d2 /etc
parent6fb65ecd385ed385c3dea47b9736a2a4d95aa138 (diff)
downloadpfsense-8797aa328b6cee2579b9dcb3d557b6171984936b.zip
pfsense-8797aa328b6cee2579b9dcb3d557b6171984936b.tar.gz
$config needs to be a global item
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index ffab85d..4e6a85a 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -231,6 +231,7 @@ function get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", $retu
}
function uninstall_package_from_name($pkg_name) {
+ global $config;
$id = get_pkg_id($pkg_name);
$todel = substr(reverse_strrchr($config['installedpackages']['package'][$id]['depends_on_package'], "."), 0, -1);
delete_package($todel, $pkg_name);
OpenPOWER on IntegriCloud