Using static server for image

This commit is contained in:
Christophe LATOUR 2017-08-11 17:52:58 +02:00
parent 2d66e34a0d
commit c197e75f22

View File

@ -13,7 +13,8 @@ class ProductList extends BaseProduct {
$id_image = $this->getCover($this->id);
$id_image = $id_image['id_image'];
$img = 'http://' . (new \Link())->getImageLink($this->link_rewrite, $id_image, 'product_carre');
$img = (new \Link())->getImageLink($this->link_rewrite, $id_image, 'home');
$img = str_replace($_SERVER['SERVER_NAME'], env('DOMAIN_STATIC'), $img);
$product['img'] = $img;
return $product;