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

There are no current releases of previous majors right now

This commit is contained in:
Christoph M. Becker
2022-02-17 16:47:34 +01:00
parent 49a2d546f5
commit 63aa8c72af

View File

@@ -39,11 +39,11 @@ site_header("Downloads",
)
);
?>
<?php foreach ($RELEASES as $MAJOR => $major_releases): /* major releases loop start */
<?php $i = 0; foreach ($RELEASES as $MAJOR => $major_releases): /* major releases loop start */
$releases = array_slice($major_releases, 0, $SHOW_COUNT);
?>
<a id="v<?php echo $MAJOR; ?>"></a>
<?php $i = 0; foreach ($releases as $v => $a): ?>
<?php foreach ($releases as $v => $a): ?>
<?php $mver = substr($v, 0, strrpos($v, '.')); ?>
<?php $stable = $i++ === 0 ? "Current Stable" : "Old Stable"; ?>