Commit 2dc8545f authored by Krystian Podemski's avatar Krystian Podemski
parent 2775957a
......@@ -3812,7 +3812,7 @@ class AdminProductsControllerCore extends AdminController
if (is_array($images))
{
foreach ($images as $k => $image)
$images[$k]['src'] = $this->context->link->getImageLink($product->link_rewrite[$this->context->language->id], $product->id.'-'.$image['id_image'], 'small_default');
$images[$k]['src'] = $this->context->link->getImageLink($product->link_rewrite[$this->context->language->id], $product->id.'-'.$image['id_image'], ImageType::getFormatedName('small'));
$data->assign('images', $images);
}
$data->assign('imagesTypes', ImageType::getImagesTypes('products'));
......@@ -4077,7 +4077,7 @@ class AdminProductsControllerCore extends AdminController
if (isset($type['name']))
$data->assign('imageType', $type['name']);
else
$data->assign('imageType', 'small_default');
$data->assign('imageType', ImageType::getFormatedName('small'));
}
else
$this->displayWarning($this->l('You must save the product in this shop before adding images.'));
......@@ -4143,7 +4143,7 @@ class AdminProductsControllerCore extends AdminController
if (isset($type['name']))
$data->assign('imageType', $type['name']);
else
$data->assign('imageType', 'small_default');
$data->assign('imageType', ImageType::getFormatedName('small'));
$data->assign('imageWidth', (isset($image_type['width']) ? (int)($image_type['width']) : 64) + 25);
foreach ($images as $k => $image)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment