[-] Fixed bug : Logo of carriers are not uploaded in the correct directory

This commit is contained in:
mDeflotte
2012-01-02 15:27:27 +00:00
parent 3e98ba04d8
commit 65585b63b1
@@ -29,9 +29,9 @@ class AdminCarriersControllerCore extends AdminController
{ {
public function __construct() public function __construct()
{ {
$this->table = 'carrier'; $this->table = 'carrier';
$this->className = 'Carrier'; $this->className = 'Carrier';
$this->lang = false; $this->lang = false;
$this->deleted = true; $this->deleted = true;
$this->addRowAction('edit'); $this->addRowAction('edit');
@@ -42,11 +42,11 @@ class AdminCarriersControllerCore extends AdminController
$this->context = Context::getContext(); $this->context = Context::getContext();
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->fieldImageSettings = array( $this->fieldImageSettings = array(
'name' => 'logo', 'name' => 'logo',
'dir' => 'st' 'dir' => 's'
); );
$this->fieldsDisplay = array( $this->fieldsDisplay = array(
@@ -449,7 +449,7 @@ class AdminCarriersControllerCore extends AdminController
{ {
if (Tools::getValue('submitAdd'.$this->table)) if (Tools::getValue('submitAdd'.$this->table))
{ {
/* Checking fields validity */ /* Checking fields validity */
$this->validateRules(); $this->validateRules();
if (!count($this->_errors)) if (!count($this->_errors))
{ {