diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-05-10 17:16:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-05-10 17:16:01 +0000 |
commit | 8797aa328b6cee2579b9dcb3d557b6171984936b (patch) | |
tree | 8463e391e94ab23121cada700f8fa6350f2802d2 | |
parent | 6fb65ecd385ed385c3dea47b9736a2a4d95aa138 (diff) | |
download | pfsense-8797aa328b6cee2579b9dcb3d557b6171984936b.zip pfsense-8797aa328b6cee2579b9dcb3d557b6171984936b.tar.gz |
$config needs to be a global item
-rw-r--r-- | etc/inc/pkg-utils.inc | 1 |
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); |