[*] BO : Removed size limit for image upload (BL006, CC136)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8482 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-09-12 09:14:07 +00:00
parent 77a4815ef0
commit a3245e4093
17 changed files with 43 additions and 51 deletions
+2 -5
View File
@@ -117,9 +117,6 @@ abstract class AdminSelfTab
/** @var string Order way (ASC, DESC) determined by arrows in list header */
protected $_orderWay;
/** @var integer Max image size for upload */
protected $maxImageSize = 2000000;
/** @var array Errors displayed after post processing */
public $_errors = array();
@@ -1140,7 +1137,7 @@ abstract class AdminSelfTab
return false;
// Check image validity
if ($error = checkImage($_FILES[$name], $this->maxImageSize))
if ($error = checkImage($_FILES[$name]))
$this->_errors[] = $error;
elseif (!$tmpName = tempnam(_PS_TMP_IMG_DIR_, 'PS') OR !move_uploaded_file($_FILES[$name]['tmp_name'], $tmpName))
return false;
@@ -1171,7 +1168,7 @@ abstract class AdminSelfTab
if (isset($_FILES[$name]['tmp_name']) AND !empty($_FILES[$name]['tmp_name']))
{
/* Check ico validity */
if ($error = checkIco($_FILES[$name], $this->maxImageSize))
if ($error = checkIco($_FILES[$name]))
$this->_errors[] = $error;
/* Copy new ico */