Skip to content

Commit

Permalink
Ensure we always link to the right downloads page.
Browse files Browse the repository at this point in the history
  • Loading branch information
LawnGnome committed Aug 19, 2014
1 parent 0a4e513 commit c6f06a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eol.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function($t) {
<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>
Expand Down
2 changes: 2 additions & 0 deletions include/branches.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
Expand Down Expand Up @@ -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,
);
}
Expand Down

0 comments on commit c6f06a3

Please sign in to comment.