com web/php: Ensure we always link to the right downloads page.: eol.php include/branches.inc
| From: | Adam Harvey | 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-19724@lists.php.net to get a copy of this message | ||
Commit: c6f06a34aa2d2bf64b06a7753346c946b7b6065e
Author: Adam Harvey <aharvey@php.net> Tue, 19 Aug 2014 15:08:25 -0700
Parents: 0a4e513b242137374abed2e59fb230c4b1e6470f
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=c6f06a34aa2d2bf64b06a7753346c946b7b6065e
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,
);
}