From 9a4c4495df195c723cea90b6bdcb20edc0a2ea5b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 4 Apr 2022 19:13:18 +0200 Subject: [PATCH] fix img. minification action --- .github/workflows/image.yml | 2 +- Theme/Backend/media-list.tpl.php | 68 ++++++++++++++++++++++---------- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index d2fb2d4..8900845 100755 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -19,6 +19,6 @@ jobs: uses: actions/checkout@master - name: Compress Images - uses: calibreapp/image-actions@master + uses: calibreapp/image-actions@main with: githubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Theme/Backend/media-list.tpl.php b/Theme/Backend/media-list.tpl.php index 51ab685..1e204ed 100755 --- a/Theme/Backend/media-list.tpl.php +++ b/Theme/Backend/media-list.tpl.php @@ -12,8 +12,6 @@ */ declare(strict_types=1); -use Modules\Media\Models\MediaClass; -use Modules\Media\Models\Reference; use phpOMS\System\File\FileUtils; use phpOMS\Uri\UriFactory; use phpOMS\Utils\Converter\FileSizeType; @@ -39,9 +37,15 @@ $next = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=
@@ -50,8 +54,10 @@ $next = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=
@@ -81,7 +88,9 @@ $next = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=