Using static server for image
This commit is contained in:
parent
2d66e34a0d
commit
c197e75f22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user