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);