Do not forget the thumbs directory when returning the images paths

This commit is contained in:
Cédric Salvador 2013-12-19 15:55:02 +01:00
parent a1e0d84e37
commit f98838616e

View File

@ -2946,7 +2946,7 @@ class Product extends CommonObject
// Objet
$obj=array();
$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']="";
$tabobj[$nbphoto-1]=$obj;