aboutsummaryrefslogtreecommitdiffstats
path: root/config/widget-antivirus/antivirus_status.widget.php
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-08 14:39:30 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-08 14:39:30 +0200
commit46d07a1d696e32de33537ad41e173333f5c4a602 (patch)
treed1223d57e88e393a751c64c1aa3fc30516a8646b /config/widget-antivirus/antivirus_status.widget.php
parent6a6d18ffb4f70d42ac56f1118a1d9506680687d6 (diff)
downloadpfsense-packages-46d07a1d696e32de33537ad41e173333f5c4a602.tar.gz
pfsense-packages-46d07a1d696e32de33537ad41e173333f5c4a602.tar.bz2
pfsense-packages-46d07a1d696e32de33537ad41e173333f5c4a602.zip
use pkg_exec() to check package version for pfSense 2.3
Diffstat (limited to 'config/widget-antivirus/antivirus_status.widget.php')
-rw-r--r--config/widget-antivirus/antivirus_status.widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/widget-antivirus/antivirus_status.widget.php b/config/widget-antivirus/antivirus_status.widget.php
index 77685c20..82f9a74e 100644
--- a/config/widget-antivirus/antivirus_status.widget.php
+++ b/config/widget-antivirus/antivirus_status.widget.php
@@ -112,7 +112,7 @@ 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 exec("/usr/sbin/pkg info havp | /usr/bin/head -n 1");
+ echo pkg_exec("query '%v' havp");
}
?>
</td>