// fix image file upload for IE
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15563 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
9291b9ad1f
commit
a84328a595
1 file changed
+1
-2
@@ -128,8 +128,7 @@ class QqUploadedFileForm
|
|||||||
$imagesTypes = ImageType::getImagesTypes('products');
|
$imagesTypes = ImageType::getImagesTypes('products');
|
||||||
foreach ($imagesTypes as $imageType)
|
foreach ($imagesTypes as $imageType)
|
||||||
{
|
{
|
||||||
$theme = (Shop::isFeatureActive() ? '-'.$imageType['id_theme'] : '');
|
if (!ImageManager::resize($tmpName, $new_path.'-'.stripslashes($imageType['name']).'.'.$image->image_format, $imageType['width'], $imageType['height'], $image->image_format))
|
||||||
if (!ImageManager::resize($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']));
|
return array('error' => Tools::displayError('An error occurred while copying image:').' '.stripslashes($imageType['name']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user