[Scummvm-git-logs] scummvm-web master -> c5a669136874c96836554e17fe99e3f2c513d929

Thunderforge noreply at scummvm.org
Sun Jan 9 23:34:20 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:
c5a6691368 WEB: Update DownloadsModel.php (#187)


Commit: c5a669136874c96836554e17fe99e3f2c513d929
    https://github.com/scummvm/scummvm-web/commit/c5a669136874c96836554e17fe99e3f2c513d929
Author: masbaehr (38694044+masbaehr at users.noreply.github.com)
Date: 2022-01-09T17:34:17-06:00

Commit Message:
WEB: Update DownloadsModel.php (#187)

fix wrong url for macos. download did not work because link is like this:
https://downloads.scummvm.orgfrs/scummvm/2.5.1/scummvm-2.5.1-macosx.dmg

Changed paths:
    include/Models/DownloadsModel.php


diff --git a/include/Models/DownloadsModel.php b/include/Models/DownloadsModel.php
index e8c857af..0085db81 100644
--- a/include/Models/DownloadsModel.php
+++ b/include/Models/DownloadsModel.php
@@ -113,7 +113,7 @@ class DownloadsModel extends BasicModel
                 $url = str_replace('{$version}', $version, $url);
             } else {
                 // Construct the URL and fill in the version
-                $url = DOWNLOADS_BASE . DOWNLOADS_URL . $download->getURL();
+                $url = DOWNLOADS_BASE . "/" . DOWNLOADS_URL . $download->getURL();
                 $version = $download->getVersion();
                 $url = str_replace('{$version}', $version, $url);
             }




More information about the Scummvm-git-logs mailing list