Skip to content

Commit

Permalink
workaround the a bit off monthsUntilEOS generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Jul 21, 2022
1 parent 8f95855 commit ba9c039
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions plugins/quickicon/eos310/eos310.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ private function getMessageInfo($monthsUntilEOS, $inverted)
);
}

// The security support is ending in 6 months
if ($monthsUntilEOS <= 6)
// The security support is ending in 6 months; The calculation is a month off so we use 5 here.
if ($monthsUntilEOS <= 5)
{
return array(
'id' => 4,
Expand All @@ -225,8 +225,8 @@ private function getMessageInfo($monthsUntilEOS, $inverted)
);
}

// We are in security only mode now, 12 month to go from now on
if ($monthsUntilEOS <= 12)
// We are in security only mode now, 12 month to go from now on; The calculation is a month off so we use 11 here.
if ($monthsUntilEOS <= 11)
{
return array(
'id' => 3,
Expand All @@ -240,8 +240,8 @@ private function getMessageInfo($monthsUntilEOS, $inverted)
);
}

// We still have 16 month to go, lets remind our users about the pre upgrade checker
if ($monthsUntilEOS <= 16)
// We still have 16 month to go, lets remind our users about the pre upgrade checker; The calculation is a month off so we use 15 here.
if ($monthsUntilEOS <= 15)
{
return array(
'id' => 2,
Expand All @@ -255,8 +255,8 @@ private function getMessageInfo($monthsUntilEOS, $inverted)
);
}

// Lets start our messages 2 month after the initial release, still 22 month to go
if ($monthsUntilEOS <= 22)
// Lets start our messages 2 month after the initial release, still 22 month to go; The calculation is a month off so we use 21 here.
if ($monthsUntilEOS <= 21)
{
return array(
'id' => 1,
Expand Down

0 comments on commit ba9c039

Please sign in to comment.