Skip to content

Commit c6f06a3

Browse files
committed
Ensure we always link to the right downloads page.
1 parent 0a4e513 commit c6f06a3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

eol.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function($t) {
8282
<em><?php echo $eolPeriod ?></em>
8383
</td>
8484
<td>
85-
<a href="/releases/#<?php echo htmlspecialchars($detail['version']); ?>">
85+
<a href="<?php echo htmlspecialchars($detail['link']); ?>">
8686
<?php echo htmlspecialchars($detail['version']); ?>
8787
</a>
8888
</td>

include/branches.inc

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function get_eol_branches($always_include = null) {
2222
if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['version'], 'gt')) {
2323
$branches[$major][$branch] = array(
2424
'date' => strtotime($release['date']),
25+
'link' => "/releases#$version",
2526
'version' => $version,
2627
);
2728
}
@@ -52,6 +53,7 @@ function get_eol_branches($always_include = null) {
5253
if ($branch = version_number_to_branch($version)) {
5354
$branches[$major][$branch] = array(
5455
'date' => strtotime($release['source'][0]['date']),
56+
'link' => "/downloads#v$version",
5557
'version' => $version,
5658
);
5759
}

0 commit comments

Comments
 (0)