Browse Source

requires an initial release date to be shown

merge-requests/4/head
JamesRezo 4 years ago
parent
commit
0404624440
  1. 12
      supportedversions_fonctions.php

12
supportedversions_fonctions.php

@ -97,11 +97,13 @@ function branches_to_show($eol = false) {
return array_reduce(
releases(),
function ($branches, $release) use ($eol, $now) {
if ($eol && $release['eol'] != '' && new DateTime($release['eol']) > min_date()) {
$branches[] = $release;
}
elseif ($release['eol'] == '' || $release['eol'] > $now) {
$branches[] = $release;
if ($release['initial_release'] != '') {
if ($eol && $release['eol'] != '' && new DateTime($release['eol']) > min_date()) {
$branches[] = $release;
}
elseif ($release['eol'] == '' || $release['eol'] > $now) {
$branches[] = $release;
}
}
return $branches;

Loading…
Cancel
Save