[*] 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:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user