forked from Wavyzz/dolibarr
Debug view of thumbs for svg
This commit is contained in:
@@ -8650,7 +8650,10 @@ abstract class CommonObject
|
||||
// Find name of thumb file
|
||||
$photo_vignette = basename(getImageFileNameForSize($dir.$file, '_small'));
|
||||
if (!dol_is_file($dirthumb.$photo_vignette)) {
|
||||
$photo_vignette = '';
|
||||
// The thumb does not exists, so we will use the original file
|
||||
$dirthumb = $dir;
|
||||
$pdirthumb = $pdir;
|
||||
$photo_vignette = basename($file);
|
||||
}
|
||||
|
||||
// Get filesize of original file
|
||||
|
||||
Reference in New Issue
Block a user