[Scummvm-git-logs] scummvm-web master -> d1ae44ec9d83d413abef1b265e6cd4a2899f6e84
Thunderforge
noreply at scummvm.org
Wed Jan 12 03:39:34 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:
d1ae44ec9d WEB: Restoring the daily URL. It's in a different location than the others
Commit: d1ae44ec9d83d413abef1b265e6cd4a2899f6e84
https://github.com/scummvm/scummvm-web/commit/d1ae44ec9d83d413abef1b265e6cd4a2899f6e84
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2022-01-11T21:39:31-06:00
Commit Message:
WEB: Restoring the daily URL. It's in a different location than the others
Changed paths:
include/Constants.php
include/Objects/File.php
diff --git a/include/Constants.php b/include/Constants.php
index ff3afce9..6615fc72 100644
--- a/include/Constants.php
+++ b/include/Constants.php
@@ -49,6 +49,7 @@ class Constants
/* Downloads */
define('DOWNLOADS_BASE', 'https://downloads.scummvm.org');
define('DOWNLOADS_URL', 'frs/scummvm/{$version}/');
+ define('DOWNLOADS_DAILY_URL', 'frs/daily/');
define('DOWNLOADS_EXTRAS_URL', 'frs/extras/');
define('DOWNLOADS_TOOLS_URL', 'frs/scummvm-tools/{$release_tools}/');
diff --git a/include/Objects/File.php b/include/Objects/File.php
index 1a61e120..6f39ff81 100644
--- a/include/Objects/File.php
+++ b/include/Objects/File.php
@@ -36,7 +36,9 @@ class File extends BasicObject
$this->url = $url;
} else {
// Construct the URL based on its type
- if ($this->subcategory == 'tools') {
+ if ($this->category == 'scummvm' && $this->version == 'daily') {
+ $fname = DOWNLOADS_DAILY_URL . $url;
+ } elseif ($this->subcategory == 'tools') {
$fname = DOWNLOADS_TOOLS_URL . $url;
} elseif ($this->category == 'games' || $this->category == 'addons') {
$fname = DOWNLOADS_EXTRAS_URL . $url;
More information about the Scummvm-git-logs
mailing list