viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Fix bug in display of webp thumbs 5

Chris Pollett [2023-12-29 18:Dec:th]
Fix bug in display of webp thumbs 5
Filename
src/controllers/ResourceController.php
diff --git a/src/controllers/ResourceController.php b/src/controllers/ResourceController.php
index 553e31edd..d2466641d 100644
--- a/src/controllers/ResourceController.php
+++ b/src/controllers/ResourceController.php
@@ -169,7 +169,6 @@ class ResourceController extends Controller implements CrawlConstants
                 }
             }
         }
-        $alt_path = $path;
         if (substr($path, -4) == 'webp') {
             $alt_path = substr($path, 0, -4) . "jpg";
             if (!file_exists($path) && file_exists($alt_path)) {
ViewGit