[Scummvm-git-logs] scummvm-web master -> 732df0df4a55f7dfc185a27556fd17a9e149eeec
Thunderforge
noreply at scummvm.org
Wed Jan 12 04:05:00 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
732df0df4a WEB: Ensuring daily category takes priority
Commit: 732df0df4a55f7dfc185a27556fd17a9e149eeec
https://github.com/scummvm/scummvm-web/commit/732df0df4a55f7dfc185a27556fd17a9e149eeec
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2022-01-11T22:04:56-06:00
Commit Message:
WEB: Ensuring daily category takes priority
Daily builds should always be in the "Daily" category, regardless of which they are.
Changed paths:
include/Models/DownloadsModel.php
diff --git a/include/Models/DownloadsModel.php b/include/Models/DownloadsModel.php
index 5c729b64..ad141f24 100644
--- a/include/Models/DownloadsModel.php
+++ b/include/Models/DownloadsModel.php
@@ -26,7 +26,10 @@ class DownloadsModel extends BasicModel
// Source and tools should be under the current section
// TODO Clean this up when we remove subcategories
// Tools are always go to the current section
- if ($data->getVersion() == RELEASE || $data->getCategory() == 'tools') {
+ if ($data->getVersion() == 'Daily') {
+ $category = 'daily';
+ $subCategory = 'daily_downloads';
+ } elseif ($data->getVersion() == RELEASE || $data->getCategory() == 'tools') {
$category = 'current';
if ($data->getSubCategory() == 'source') {
$subCategory = 'source';
@@ -35,9 +38,6 @@ class DownloadsModel extends BasicModel
} else {
$subCategory = 'release';
}
- } elseif ($data->getVersion() == 'Daily') {
- $category = 'daily';
- $subCategory = 'daily_downloads';
} elseif ($data->getVersion() == null) {
$category = $data->getCategory();
$subCategory = $data->getSubcategory();
More information about the Scummvm-git-logs
mailing list