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

Don't show recently EOLed branches in the supported versions table.

Changed the behaviour of get_active_branches() so that callers can
choose whether to get recently EOLed branches or not. (This is basically
for the supported versions page; the other callers -- namely the front
page download links and bug tracker backend -- likely still want the
previous behaviour.)

After all, it's a little weird listing 5.5 as a supported version in the
table when we just made a big deal of EOLing it!
This commit is contained in:
Adam Harvey
2016-07-22 12:40:30 -07:00
parent 935c5b8436
commit 445ecce8db
2 changed files with 7 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ $VERSION_NOTES = array(
</tr>
</thead>
<tbody>
<?php foreach (get_active_branches() as $major => $releases): ?>
<?php foreach (get_active_branches(false) as $major => $releases): ?>
<?php ksort($releases) ?>
<?php foreach ($releases as $branch => $release): ?>
<?php