From 9bf090b263b697d02f253fb6e8a02a1ca8fe549c Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Fri, 17 Jan 2025 01:52:19 +0100 Subject: [PATCH] Debug v21 --- htdocs/website/samples/wrapper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/website/samples/wrapper.php b/htdocs/website/samples/wrapper.php index 0823b551efe..f7127a3d815 100644 --- a/htdocs/website/samples/wrapper.php +++ b/htdocs/website/samples/wrapper.php @@ -266,6 +266,11 @@ if ($rss) { exit; } + // For backward compatibility of old thumbs that were created with filename in lower case and with .png extension + if (image_format_supported($fullpath_original_file) && !dol_is_file($fullpath_original_file)) { + $fullpath_original_file = getImageFileNameForSize($fullpath_original_file, '', '.png'); + } + clearstatcache(); $filename = basename($fullpath_original_file);