diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 696abc45b5f..50034059727 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2454,7 +2454,7 @@ class Product extends CommonObject // Cree fichier en taille origine $content = @file_get_contents($file); if( $content) - { + { $nom = basename($file); $im = fopen(dol_osencode($dir.$nom),'wb'); fwrite($im, $content); @@ -2517,7 +2517,25 @@ class Product extends CommonObject $dirthumb = $dir.'thumbs/'; $pdirthumb = $pdir.'thumbs/'; - $return=''; + + $return =''."\n"; + /*$return.="\n"; + */ $nbphoto=0; $dir_osencoded=dol_osencode($dir); @@ -2555,7 +2573,7 @@ class Product extends CommonObject if ($nbbyrow) $return.= ''; $return.= "\n"; - $return.= ''; + $return.= ''; // Show image (width height=$maxheight) // Si fichier vignette disponible et image source trop grande, on utilise la vignette, sinon on utilise photo origine @@ -2570,7 +2588,7 @@ class Product extends CommonObject $return.= ''; } - $return.= ''; + $return.= ''."\n"; if ($showfilename) $return.= '
'.$viewfilename; if ($showaction)