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:
2
eol.php
2
eol.php
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user