[-] BO : #PSTEST-232 : Product pictures are now displayed with multishop
This commit is contained in:
@@ -546,7 +546,7 @@ class AdminControllerCore extends Controller
|
||||
{
|
||||
if (!empty($this->fieldImageSettings))
|
||||
$res = $object->deleteImage();
|
||||
|
||||
|
||||
if (!$res)
|
||||
$this->_errors[] = Tools::displayError('Unable to delete associated images');
|
||||
|
||||
@@ -1573,7 +1573,7 @@ class AdminControllerCore extends Controller
|
||||
$this->addCSS(_THEME_CSS_DIR_.'rtl.css');
|
||||
|
||||
$this->addJquery();
|
||||
$this->addjQueryPlugin(array('cluetip', 'hoverIntent', 'scrollTo', 'alerts'));
|
||||
$this->addjQueryPlugin(array('cluetip', 'hoverIntent', 'scrollTo'));
|
||||
|
||||
$this->addJS(array(
|
||||
_PS_JS_DIR_.'admin.js',
|
||||
|
||||
@@ -219,8 +219,12 @@ class qqUploadedFileXhr
|
||||
$imagesTypes = ImageType::getImagesTypes('products');
|
||||
foreach ($imagesTypes AS $k => $imageType)
|
||||
{
|
||||
$theme = (Shop::isFeatureActive() ? '-'.$imageType['id_theme'] : '');
|
||||
if (!imageResize($tmpName, $new_path.'-'.stripslashes($imageType['name']).$theme.'.'.$image->image_format, $imageType['width'], $imageType['height'], $image->image_format))
|
||||
/*
|
||||
$theme = (Shop::isFeatureActive() ? '-'.$imageType['id_theme'] : '');
|
||||
if (!imageResize($tmpName, $new_path.'-'.stripslashes($imageType['name']).$theme.'.'.$image->image_format, $imageType['width'], $imageType['height'], $image->image_format))
|
||||
return array('error' => Tools::displayError('An error occurred while copying image:').' '.stripslashes($imageType['name']));
|
||||
*/
|
||||
if (!imageResize($tmpName, $new_path.'-'.stripslashes($imageType['name']).'.'.$image->image_format, $imageType['width'], $imageType['height'], $image->image_format))
|
||||
return array('error' => Tools::displayError('An error occurred while copying image:').' '.stripslashes($imageType['name']));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user