[-] BO : #PSTEST-22 : Orthographe à revoir dans combinaisons de la fiche produit

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11607 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-22 14:16:11 +00:00
parent 341eefd647
commit 9d8452eef0
4 changed files with 27 additions and 10 deletions
@@ -2116,7 +2116,13 @@ class AdminProductsControllerCore extends AdminController
$this->tpl_form_vars['form_action'] = $this->context->link->getAdminLink('AdminProducts').'&id_product='.$id_product;
$this->tpl_form_vars['id_product'] = $id_product;
$this->tpl_form_vars['upload_max_filesize'] = ini_get('upload_max_filesize');
// Transform configuration option 'upload_max_filesize' in octets
$upload_max_filesize = Tools::getOctets(ini_get('upload_max_filesize'));
// Transform configuration option 'upload_max_filesize' in MegaOctets
$upload_max_filesize = ($upload_max_filesize / 1024) / 1024;
$this->tpl_form_vars['upload_max_filesize'] = $upload_max_filesize;
$this->tpl_form_vars['country_display_tax_label'] = $this->context->country->display_tax_label;
// let's calculate this once for all