mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Workaound fixes #6320
This commit is contained in:
parent
af06931c30
commit
d1c57eb8e1
@ -1115,7 +1115,7 @@ function get_base_pkg_name() {
|
||||
}
|
||||
|
||||
/* Verify if system needs upgrade (meta package or base) */
|
||||
function get_system_pkg_version() {
|
||||
function get_system_pkg_version($baseonly = false) {
|
||||
global $g;
|
||||
|
||||
$base_pkg = get_base_pkg_name();
|
||||
@ -1135,8 +1135,7 @@ function get_system_pkg_version() {
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($pkg_info) ||
|
||||
$pkg_info['version'] == $pkg_info['installed_version']) {
|
||||
if (empty($pkg_info) || (!$baseonly && ($pkg_info['version'] == $pkg_info['installed_version']))) {
|
||||
$info = get_pkg_info($meta_pkg);
|
||||
$pkg_name = $meta_pkg;
|
||||
|
||||
|
||||
@ -100,7 +100,7 @@ if ($_REQUEST['ajax']) {
|
||||
// If this is an ajax call to get the installed and newst versions, call that function,
|
||||
// JSON encode the result, print it and exit
|
||||
if ($_REQUEST['getversion']) {
|
||||
$firmwareversions = get_system_pkg_version();
|
||||
$firmwareversions = get_system_pkg_version(true);
|
||||
print(json_encode($firmwareversions));
|
||||
exit;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user