[Scummvm-git-logs] scummvm-web master -> 299a7595e50865b40f67bfa98086efc3691237d1

Mataniko mataniko at gmail.com
Sat Apr 27 15:27:19 CEST 2019


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:
299a7595e5 WEB: Move the daily folder to /frs


Commit: 299a7595e50865b40f67bfa98086efc3691237d1
    https://github.com/scummvm/scummvm-web/commit/299a7595e50865b40f67bfa98086efc3691237d1
Author: Matan Bareket (mataniko at gmail.com)
Date: 2019-04-27T09:27:02-04:00

Commit Message:
WEB: Move the daily folder to /frs

Changed paths:
    include/Constants.php
    include/Objects/File.php


diff --git a/include/Constants.php b/include/Constants.php
index 653b20a..90cf3d0 100644
--- a/include/Constants.php
+++ b/include/Constants.php
@@ -43,6 +43,7 @@ class Constants
 
         /* Downloads */
         define('DOWNLOADS_URL', '/frs/scummvm/{$release}/');
+        define('DOWNLOADS_DAILY_URL', '/frs/daily/');
         define('DOWNLOADS_TOOLS_URL', '/frs/scummvm-tools/{$release}/');
         define('DOWNLOADS_EXTRAS_URL', '/frs/extras/');
 
diff --git a/include/Objects/File.php b/include/Objects/File.php
index ee819a3..f04a5ad 100644
--- a/include/Objects/File.php
+++ b/include/Objects/File.php
@@ -40,6 +40,8 @@ class File extends BasicObject
                 $url = DOWNLOADS_TOOLS_URL . $url;
             } elseif ($attributes['type'] == 'extras') {
                 $url = DOWNLOADS_EXTRAS_URL . $url;
+            } elseif ($attributes['type'] == 'daily')
+                $url = DOWNLOADS_DAILY_URL . $url;
             } else {
                 $url = DOWNLOADS_URL . $url;
             }





More information about the Scummvm-git-logs mailing list