[*] 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
+1 -2
View File
@@ -39,7 +39,6 @@ class Watermark extends Module
private $transparency;
private $imageTypes = array();
private $watermarkTypes;
private $maxImageSize = 100000;
public function __construct()
{
@@ -132,7 +131,7 @@ class Watermark extends Module
if (isset($_FILES['PS_WATERMARK']) AND !empty($_FILES['PS_WATERMARK']['tmp_name']))
{
/* Check watermark validity */
if ($error = checkImage($_FILES['PS_WATERMARK'], $this->maxImageSize))
if ($error = checkImage($_FILES['PS_WATERMARK']))
$this->_errors[] = $error;
/* Copy new watermark */
elseif(!copy($_FILES['PS_WATERMARK']['tmp_name'], dirname(__FILE__).'/watermark.gif'))