[-] BO : #PSTEST-232 : Product pictures are now displayed with multishop

This commit is contained in:
mBertholino
2011-12-28 16:14:23 +00:00
parent 6867390eae
commit 8ceb2c3702
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -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',
+6 -2
View File
@@ -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']));
}
}