From c6f06a34aa2d2bf64b06a7753346c946b7b6065e Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Tue, 19 Aug 2014 15:08:25 -0700 Subject: [PATCH] Ensure we always link to the right downloads page. --- eol.php | 2 +- include/branches.inc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eol.php b/eol.php index 1967e9745..95255c43c 100644 --- a/eol.php +++ b/eol.php @@ -82,7 +82,7 @@ site_header('Unsupported Branches'); - + diff --git a/include/branches.inc b/include/branches.inc index 1aece5cda..7aa6ed0b0 100644 --- a/include/branches.inc +++ b/include/branches.inc @@ -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, ); }