Do not forget the thumbs directory when returning the images paths
This commit is contained in:
parent
a1e0d84e37
commit
f98838616e
@ -2946,7 +2946,7 @@ class Product extends CommonObject
|
|||||||
// Objet
|
// Objet
|
||||||
$obj=array();
|
$obj=array();
|
||||||
$obj['photo']=$photo;
|
$obj['photo']=$photo;
|
||||||
if ($photo_vignette && dol_is_file($dirthumb.$photo_vignette)) $obj['photo_vignette']=$photo_vignette;
|
if ($photo_vignette && dol_is_file($dirthumb.$photo_vignette)) $obj['photo_vignette']=$dirthumb . $photo_vignette;
|
||||||
else $obj['photo_vignette']="";
|
else $obj['photo_vignette']="";
|
||||||
|
|
||||||
$tabobj[$nbphoto-1]=$obj;
|
$tabobj[$nbphoto-1]=$obj;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user