[Scummvm-git-logs] scummvm-web master -> 39398a2670937e1b4df9b1f6700000e91b055ab8
sev-
noreply at scummvm.org
Sun Jan 2 18:04:32 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:
39398a2670 WEB: Put tools to the current category regardless of their version
Commit: 39398a2670937e1b4df9b1f6700000e91b055ab8
https://github.com/scummvm/scummvm-web/commit/39398a2670937e1b4df9b1f6700000e91b055ab8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-01-02T19:04:24+01:00
Commit Message:
WEB: Put tools to the current category regardless of their version
Changed paths:
include/Models/DownloadsModel.php
diff --git a/include/Models/DownloadsModel.php b/include/Models/DownloadsModel.php
index c0b43aca..e8c857af 100644
--- a/include/Models/DownloadsModel.php
+++ b/include/Models/DownloadsModel.php
@@ -24,7 +24,8 @@ class DownloadsModel extends BasicModel
foreach ($parsedData as $data) {
// Source and tools should be under the current section
// TODO Clean this up when we remove subcategories
- if ($data->getVersion() == RELEASE) {
+ // Tools are always go to the current section
+ if ($data->getVersion() == RELEASE || $data->getCategory() == 'tools') {
$category = 'current';
if ($data->getCategory() == 'source') {
$subCategory = 'source';
More information about the Scummvm-git-logs
mailing list