diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-05 20:35:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-05 20:35:38 +0000 |
commit | c2c40105cced1eed5f6d036e83cbf5389fd508d4 (patch) | |
tree | 388e945053964cb15e4abc98eb60c06b7df0da86 /etc/inc | |
parent | b893276df48ef97fcc354e476fe6626b7f498d90 (diff) | |
download | pfsense-c2c40105cced1eed5f6d036e83cbf5389fd508d4.zip pfsense-c2c40105cced1eed5f6d036e83cbf5389fd508d4.tar.gz |
Correctly return packages description
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index fe5e0e4..d6e68eb 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -164,7 +164,7 @@ function return_filename_as_string($filename) { return file_get_contents($filename); } else { return false; - } + } } /****f* pfsense-utils/find_package_description @@ -178,9 +178,9 @@ function find_package_description($package) { if(!file_exists("{$g['tmp_path']}/pkg_config.xml")) fetch_latest_pkg_config(); $pkg_config = parse_xml_config_pkg("{$g['tmp_path']}/pkg_config.xml", "pfsensepkgs"); - foreach($pkgs as $index) { + foreach($pkg_config['packages']['package'] as $index) { if($index['name'] == $package) - return $pkg_config['packages']['package'][$index]['descr'] + return $index['descr']; } return; } @@ -1276,4 +1276,4 @@ function read_body($ch, $string) { return $length; } -?> +?>
\ No newline at end of file |