aboutsummaryrefslogtreecommitdiffstats
path: root/config/widget-antivirus
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-08 14:58:18 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-08 14:58:18 +0200
commitefb20df72431546285d3f462cbaf60393eb2f025 (patch)
treec76ad5e5248078995f53753d6ebdf69b7455dba8 /config/widget-antivirus
parent46d07a1d696e32de33537ad41e173333f5c4a602 (diff)
downloadpfsense-packages-efb20df72431546285d3f462cbaf60393eb2f025.tar.gz
pfsense-packages-efb20df72431546285d3f462cbaf60393eb2f025.tar.bz2
pfsense-packages-efb20df72431546285d3f462cbaf60393eb2f025.zip
use pkg_exec() to check package version for pfSense 2.3
Diffstat (limited to 'config/widget-antivirus')
-rw-r--r--config/widget-antivirus/antivirus_status.widget.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/widget-antivirus/antivirus_status.widget.php b/config/widget-antivirus/antivirus_status.widget.php
index 82f9a74e..f1079ea9 100644
--- a/config/widget-antivirus/antivirus_status.widget.php
+++ b/config/widget-antivirus/antivirus_status.widget.php
@@ -112,7 +112,8 @@ function dwg_av_statistic() {
// Show package version at least, no good quick way to get the PBI version
echo "pkg v{$config['installedpackages']['package'][get_pkg_id("havp")]['version']}";
} else {
- echo pkg_exec("query '%v' havp");
+ pkg_exec("query '%v' havp", $version, $err);
+ echo $version;
}
?>
</td>