Commit 5a54bbe7 authored by Dries's avatar Dries
Browse files

- Patch #210140 by dww: fixed code comment: 'default_major' is now deprecated...

- Patch #210140 by dww: fixed code comment: 'default_major' is now deprecated in favor of 'supported_majors'.
parent 061433ad
...@@ -361,7 +361,7 @@ function update_calculate_project_data($available) { ...@@ -361,7 +361,7 @@ function update_calculate_project_data($available) {
} }
// Otherwise, ignore unpublished, insecure, or unsupported releases. // Otherwise, ignore unpublished, insecure, or unsupported releases.
if ($release['status'] == 'unpublished' || if ($release['status'] == 'unpublished' ||
(isset($release['terms']['Release type']) && (isset($release['terms']['Release type']) &&
(in_array('Insecure', $release['terms']['Release type']) || (in_array('Insecure', $release['terms']['Release type']) ||
in_array('Unsupported', $release['terms']['Release type'])))) { in_array('Unsupported', $release['terms']['Release type'])))) {
...@@ -383,8 +383,8 @@ function update_calculate_project_data($available) { ...@@ -383,8 +383,8 @@ function update_calculate_project_data($available) {
// release. We don't even care about security updates for this // release. We don't even care about security updates for this
// branch, since if a project maintainer puts out a security release // branch, since if a project maintainer puts out a security release
// at a higher major version and not at the lower major version, // at a higher major version and not at the lower major version,
// they must change the default major release at the same time, in // they must remove the lower version from the supported major
// which case we won't hit this code. // versions at the same time, in which case we won't hit this code.
continue; continue;
} }
......
...@@ -268,7 +268,7 @@ function _update_requirement_check($project, $type) { ...@@ -268,7 +268,7 @@ function _update_requirement_check($project, $type) {
case UPDATE_UNKNOWN: case UPDATE_UNKNOWN:
case UPDATE_NOT_CHECKED: case UPDATE_NOT_CHECKED:
$requirement['value'] = isset($project['reason']) ? $project['reason'] : t('Can not determine status'); $requirement['value'] = isset($project['reason']) ? $project['reason'] : t('Can not determine status');
$requirement['severity'] = REQUIREMENT_WARNING; $requirement['severity'] = REQUIREMENT_WARNING;
break; break;
default: default:
$requirement['value'] = t('Up to date'); $requirement['value'] = t('Up to date');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment