[Scummvm-git-logs] scummvm-web master -> 5b5564c8d129850be5939777c83b75cbc668af50
Thunderforge
noreply at scummvm.org
Sat Nov 27 17:57:05 UTC 2021
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:
5b5564c8d1 WEB: Removing version sort from DownloadQuery
Commit: 5b5564c8d129850be5939777c83b75cbc668af50
https://github.com/scummvm/scummvm-web/commit/5b5564c8d129850be5939777c83b75cbc668af50
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-11-27T11:57:00-06:00
Commit Message:
WEB: Removing version sort from DownloadQuery
We now sort versions at a later point, and this avoids the issue of the Daily section appearing before the release section.
Changed paths:
include/Models/DownloadsModel.php
diff --git a/include/Models/DownloadsModel.php b/include/Models/DownloadsModel.php
index 35f4cd98..c0b43aca 100644
--- a/include/Models/DownloadsModel.php
+++ b/include/Models/DownloadsModel.php
@@ -18,8 +18,7 @@ class DownloadsModel extends BasicModel
$sections = $this->getFromCache();
if (is_null($sections)) {
$parsedData = DownloadQuery::create()
- ->orderByVersion(Criteria::DESC) // Newest first
- ->findByEnabled(true);
+ ->findByEnabled(true);
$sections = [];
$sectionsData = $this->getSectionData();
foreach ($parsedData as $data) {
More information about the Scummvm-git-logs
mailing list