[-] 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:
@@ -30,6 +30,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
/** @var integer Max image size for upload
|
/** @var integer Max image size for upload
|
||||||
* As of 1.5 it is recommended to not set a limit to max image size
|
* 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;
|
protected $max_image_size = NULL;
|
||||||
|
|
||||||
private $_category;
|
private $_category;
|
||||||
@@ -88,6 +89,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$this->imageType = 'jpg';
|
$this->imageType = 'jpg';
|
||||||
$this->context = Context::getContext();
|
$this->context = Context::getContext();
|
||||||
$this->_defaultOrderBy = 'position';
|
$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');
|
$this->max_image_size = (int)Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
|
||||||
|
|
||||||
$categoriesArray = array();
|
$categoriesArray = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user