diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 94edbbd1d04..9d71e9cdc4c 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1284,7 +1284,9 @@ else { print ''; print '
'; - if ($showphoto) print $object->show_photos($conf->product->multidir_output[$object->entity],1,1,0,0,0,80); + $maxvisiblephotos=(isset($conf->global->PRODUCT_MAX_VISIBLE_PHOTO)?$conf->global->PRODUCT_MAX_VISIBLE_PHOTO:5); + if ($conf->browser->phone) $maxvisiblephotos=1; + if ($showphoto) print $object->show_photos($conf->product->multidir_output[$object->entity],1,$maxvisiblephotos,0,0,0,80); if ($showphoto && $showbarcode) print '

'; if ($showbarcode) print $form->showbarcode($object); print '
';