mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make is_package_installed() work for all packages - not just squid ;)
This commit is contained in:
parent
87362af36b
commit
3c2a4809cd
@ -344,7 +344,7 @@ function remove_text_from_file($file, $text) {
|
||||
function is_package_installed($packagename) {
|
||||
global $config;
|
||||
foreach($config['installedpackages']['package'] as $package) {
|
||||
if($package['name'] == "squid") return 1;
|
||||
if($package['name'] == $packagename) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user