[Scummvm-git-logs] scummvm-web master -> 87c4ed02bacfd9eb71999676e49ef607fd26e8e5

Thunderforge noreply at scummvm.org
Wed Jan 12 04:47:41 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:
87c4ed02ba WEB: Return .tar.lz instead of .lz


Commit: 87c4ed02bacfd9eb71999676e49ef607fd26e8e5
    https://github.com/scummvm/scummvm-web/commit/87c4ed02bacfd9eb71999676e49ef607fd26e8e5
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2022-01-11T22:47:36-06:00

Commit Message:
WEB: Return .tar.lz instead of .lz

Changed paths:
    include/FileUtils.php


diff --git a/include/FileUtils.php b/include/FileUtils.php
index 46e9f997..fe8e5afa 100644
--- a/include/FileUtils.php
+++ b/include/FileUtils.php
@@ -61,7 +61,7 @@ class FileUtils
         $extension = substr($path, (strrpos($path, '.')));
 
         // For certain extensions, check for another extension (e.g. foo.tar.gz => tar.gz)
-        if ($extension == '.bz2' || $extension == '.gz' || $extension == '.xz' || $extension == '.7z') {
+        if ($extension == '.bz2' || $extension == '.gz' || $extension == '.lz' || $extension == '.xz' || $extension == '.7z') {
             $extension = substr($path, strrpos($path, '.', -(strlen($path) - strrpos($path, '.') + 1)));
         }
         return $extension;




More information about the Scummvm-git-logs mailing list