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

6.x
Dries Buytaert 2008-01-15 07:55:18 +00:00
parent 061433ad6d
commit 5a54bbe702
2 changed files with 4 additions and 4 deletions

View File

@ -361,7 +361,7 @@ function update_calculate_project_data($available) {
}
// Otherwise, ignore unpublished, insecure, or unsupported releases.
if ($release['status'] == 'unpublished' ||
if ($release['status'] == 'unpublished' ||
(isset($release['terms']['Release type']) &&
(in_array('Insecure', $release['terms']['Release type']) ||
in_array('Unsupported', $release['terms']['Release type'])))) {
@ -383,8 +383,8 @@ function update_calculate_project_data($available) {
// release. We don't even care about security updates for this
// branch, since if a project maintainer puts out a security release
// at a higher major version and not at the lower major version,
// they must change the default major release at the same time, in
// which case we won't hit this code.
// they must remove the lower version from the supported major
// versions at the same time, in which case we won't hit this code.
continue;
}

View File

@ -268,7 +268,7 @@ function _update_requirement_check($project, $type) {
case UPDATE_UNKNOWN:
case UPDATE_NOT_CHECKED:
$requirement['value'] = isset($project['reason']) ? $project['reason'] : t('Can not determine status');
$requirement['severity'] = REQUIREMENT_WARNING;
$requirement['severity'] = REQUIREMENT_WARNING;
break;
default:
$requirement['value'] = t('Up to date');