Skip to content

Commit

Permalink
Use 125.0.1 instead of 125.0 to calculate the beta length for 126 page
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalchevrel committed May 14, 2024
1 parent 52aa8f2 commit 1d5188d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/past_release.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
if ($requested_version == 15) {
// We never had a 14.0 release, so this is hardcoded
$previous_release_date = '2012-07-17';
} elseif ($requested_version == 126) {
$previous_release_date = $firefox_releases['firefox-125.0.1']['date'];
} else {
$previous_release_date = $firefox_releases['firefox-' . number_format((int) $requested_version - 1.0, 1)]['date'];
}
Expand Down

0 comments on commit 1d5188d

Please sign in to comment.