mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-29 21:01:25 +01:00
Debug view of thumbs for svg
This commit is contained in:
@@ -8650,7 +8650,10 @@ abstract class CommonObject
|
|||||||
// Find name of thumb file
|
// Find name of thumb file
|
||||||
$photo_vignette = basename(getImageFileNameForSize($dir.$file, '_small'));
|
$photo_vignette = basename(getImageFileNameForSize($dir.$file, '_small'));
|
||||||
if (!dol_is_file($dirthumb.$photo_vignette)) {
|
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
|
// Get filesize of original file
|
||||||
|
|||||||
@@ -9903,7 +9903,7 @@ function showDirectDownloadLink($object)
|
|||||||
* @param string $file Original filename (full or relative path)
|
* @param string $file Original filename (full or relative path)
|
||||||
* @param string $extName Extension to differenciate thumb file name ('', '_small', '_mini')
|
* @param string $extName Extension to differenciate thumb file name ('', '_small', '_mini')
|
||||||
* @param string $extImgTarget Force image extension for thumbs. Use '' to keep same extension than original image (default).
|
* @param string $extImgTarget Force image extension for thumbs. Use '' to keep same extension than original image (default).
|
||||||
* @return string New file name (full or relative path, including the thumbs/)
|
* @return string New file name (full or relative path, including the thumbs/). May be the original path if no thumb can exists.
|
||||||
*/
|
*/
|
||||||
function getImageFileNameForSize($file, $extName, $extImgTarget = '')
|
function getImageFileNameForSize($file, $extName, $extImgTarget = '')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user