Debug v21

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-01-17 01:52:19 +01:00
parent d404ab6322
commit 9bf090b263

View File

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