[*] BO #PSFV-94 : update of the displayform method by helperForm in AdminGenderController

This commit is contained in:
lLefevre
2011-10-14 12:59:26 +00:00
parent 132ecf9324
commit 0d8fcdf2a7
6 changed files with 259 additions and 157 deletions
+1 -1
View File
@@ -1077,7 +1077,7 @@ abstract class AdminTabCore
return false;
else
{
$_FILES[$name]['tmp_name'] = $tmpName;
$tmpName = $_FILES[$name]['tmp_name'];
// Copy new image
if (!imageResize($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.');