1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00

Ensure we always link to the right downloads page.

This commit is contained in:
Adam Harvey
2014-08-19 15:08:25 -07:00
parent 0a4e513b24
commit c6f06a34aa
2 changed files with 3 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ site_header('Unsupported Branches');
<em><?php echo $eolPeriod ?></em>
</td>
<td>
<a href="/releases/#<?php echo htmlspecialchars($detail['version']); ?>">
<a href="<?php echo htmlspecialchars($detail['link']); ?>">
<?php echo htmlspecialchars($detail['version']); ?>
</a>
</td>

View File

@@ -22,6 +22,7 @@ function get_eol_branches($always_include = null) {
if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['version'], 'gt')) {
$branches[$major][$branch] = array(
'date' => strtotime($release['date']),
'link' => "/releases#$version",
'version' => $version,
);
}
@@ -52,6 +53,7 @@ function get_eol_branches($always_include = null) {
if ($branch = version_number_to_branch($version)) {
$branches[$major][$branch] = array(
'date' => strtotime($release['source'][0]['date']),
'link' => "/downloads#v$version",
'version' => $version,
);
}