Bugfix sur l'affichage des photos

This commit is contained in:
Rodolphe Quiedeville 2005-03-11 08:22:27 +00:00
parent ffb9654b49
commit b33a50e6ee

View File

@ -891,6 +891,8 @@ class Product
$pdir = get_exdir($this->id) . $this->id ."/photos/"; $pdir = get_exdir($this->id) . $this->id ."/photos/";
$dir = $sdir . '/'. $pdir; $dir = $sdir . '/'. $pdir;
if ( file_exists($dir))
{
$handle=opendir($dir); $handle=opendir($dir);
while (($file = readdir($handle))!==false) while (($file = readdir($handle))!==false)
@ -906,6 +908,7 @@ class Product
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=product&file='.urlencode($pdir.$photo).'">'; print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=product&file='.urlencode($pdir.$photo).'">';
} }
} }
}
/** /**
* Je sais c'est sale mais le besoin est urgent ;-) * Je sais c'est sale mais le besoin est urgent ;-)
* *