// revert from r11699
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11702 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -92,7 +92,7 @@ class AdminProductsControllerCore extends AdminController
|
||||
$this->_defaultOrderBy = 'position';
|
||||
$this->max_file_size = (Configuration::get('PS_LIMIT_UPLOAD_IMAGE_VALUE') * 1000000);
|
||||
$this->max_image_size = (Configuration::get('PS_LIMIT_UPLOAD_FILE_VALUE') * 1000000);
|
||||
|
||||
|
||||
$categoriesArray = array();
|
||||
$categories = Category::getSimpleCategories($this->context->language->id);
|
||||
|
||||
@@ -1370,11 +1370,8 @@ class AdminProductsControllerCore extends AdminController
|
||||
{
|
||||
$imagesTypes = ImageType::getImagesTypes('products');
|
||||
foreach ($imagesTypes as $k => $image_type)
|
||||
{
|
||||
$theme = (Shop::isFeatureActive() ? '-'.$image_type['id_theme'] : '');
|
||||
if (!imageResize($tmpName, $new_path.'-'.stripslashes($image_type['name']).$theme.'.'.$image->image_format, $image_type['width'], $image_type['height'], $image->image_format))
|
||||
if (!imageResize($tmpName, $new_path.'-'.stripslashes($image_type['name']).'.'.$image->image_format, $image_type['width'], $image_type['height'], $image->image_format))
|
||||
$this->_errors[] = Tools::displayError('An error occurred while copying image:').' '.stripslashes($image_type['name']);
|
||||
}
|
||||
}
|
||||
|
||||
@unlink($tmpName);
|
||||
|
||||
Reference in New Issue
Block a user