[-] bo : #PSFV-273 : $max_file_size has been re-added

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11780 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mBertholino
2011-12-27 09:33:20 +00:00
parent 991d50a4c3
commit 7013d26717
@@ -30,6 +30,7 @@ class AdminProductsControllerCore extends AdminController
/** @var integer Max image size for upload
* As of 1.5 it is recommended to not set a limit to max image size
**/
protected $max_file_size = NULL;
protected $max_image_size = NULL;
private $_category;
@@ -88,6 +89,7 @@ class AdminProductsControllerCore extends AdminController
$this->imageType = 'jpg';
$this->context = Context::getContext();
$this->_defaultOrderBy = 'position';
$this->max_file_size = (int)(Configuration::get('PS_LIMIT_UPLOAD_FILE_VALUE') * 1000000);
$this->max_image_size = (int)Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
$categoriesArray = array();