From 1c6b736418112d3c64a93dd2b34442b4bec0147a Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Mon, 13 Feb 2012 17:38:03 +0000 Subject: [PATCH] // revert wrong change ($_FILES is needed in afterImageUpload() git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13274 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/AdminTab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/AdminTab.php b/classes/AdminTab.php index b3fe51d43..b0b1d4a56 100644 --- a/classes/AdminTab.php +++ b/classes/AdminTab.php @@ -1089,7 +1089,7 @@ abstract class AdminTabCore return false; else { - $tmpName = $_FILES[$name]['tmp_name']; + $_FILES[$name]['tmp_name'] = $tmpName; // Copy new image if (!ImageManager::resize($tmpName, _PS_IMG_DIR_.$dir.$id.'.'.$this->imageType, (int)$width, (int)$height, ($ext ? $ext : $this->imageType))) $this->_errors[] = Tools::displayError('An error occurred while uploading image.');