com web/php: Present PHP downloads on frontpage in reverse order: index.php

From: Date: Wed, 11 Dec 2019 11:24:50 +0000
Subject: com web/php: Present PHP downloads on frontpage in reverse order: index.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-28446@lists.php.net to get a copy of this message
Commit: ab28f2abbf2ed6ca9548354d85b425aa1c761dab Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 11 Dec 2019 12:24:50 +0100 Parents: 0df57204dda21eba36f873f0651784d2bff2f66b Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ab28f2abbf2ed6ca9548354d85b425aa1c761dab Log: Present PHP downloads on frontpage in reverse order We want to encourage users to use latest stable versions, and this also conforms to the order on the download page. Changed paths: M index.php Diff: diff --git a/index.php b/index.php index 9f25d8754..3dc7505df 100644 --- a/index.php +++ b/index.php @@ -97,7 +97,10 @@ $intro = <<<EOF EOF; $intro .= "<ul>\n"; -foreach (get_active_branches() as $major => $releases) { +$active_branches = get_active_branches(); +krsort($active_branches); +foreach ($active_branches as $major => $releases) { + krsort($releases); foreach ((array)$releases as $release) { $version = $release['version']; list($major, $minor, $_) = explode('.', $version);

« previous php.webmaster (#28446) next »