com web/php: Ensure we always link to the right downloads page.: eol.php include/branches.inc
| From: | Paul Dragoonis | Date: | Tue, 19 Aug 2014 22:08:25 +0000 |
| Subject: | com web/php: Ensure we always link to the right downloads page.: eol.php include/branches.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21920@lists.php.net to get a copy of this message | ||
Commit: 52b6bc0eb5d4f2688d3d664aee06075416cd2ca6
Author: Adam Harvey <aharvey@php.net> Tue, 19 Aug 2014 15:08:25 -0700
Parents: f206fe5b1aca09bb4fd0ccc5ac5d1034a1f6599a
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=52b6bc0eb5d4f2688d3d664aee06075416cd2ca6
Log:
Ensure we always link to the right downloads page.
Changed paths:
M eol.php
M include/branches.inc
Diff:
diff --git a/eol.php b/eol.php
index 1967e97..95255c4 100644
--- a/eol.php
+++ b/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>
diff --git a/include/branches.inc b/include/branches.inc
index 1aece5c...7aa6ed0 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,
);
}