1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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.
This commit is contained in:
Christoph M. Becker
2019-12-11 12:24:50 +01:00
parent 0df57204dd
commit ab28f2abbf

View File

@@ -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);