[-] BO : Fixed bug in __construct() related to context
This commit is contained in:
@@ -27,13 +27,15 @@
|
|||||||
|
|
||||||
class AdminMeta extends AdminTab
|
class AdminMeta extends AdminTab
|
||||||
{
|
{
|
||||||
|
public $table = 'meta';
|
||||||
|
public $className = 'Meta';
|
||||||
|
public $lang = true;
|
||||||
|
public $edit = true;
|
||||||
|
public $delete = true;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->table = 'meta';
|
parent::__construct();
|
||||||
$this->className = 'Meta';
|
|
||||||
$this->lang = true;
|
|
||||||
$this->edit = true;
|
|
||||||
$this->delete = true;
|
|
||||||
|
|
||||||
$this->fieldsDisplay = array(
|
$this->fieldsDisplay = array(
|
||||||
'id_meta' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
|
'id_meta' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
|
||||||
@@ -51,7 +53,6 @@ class AdminMeta extends AdminTab
|
|||||||
);
|
);
|
||||||
if (!Tools::getValue('__PS_BASE_URI__'))
|
if (!Tools::getValue('__PS_BASE_URI__'))
|
||||||
$_POST['__PS_BASE_URI__'] = __PS_BASE_URI__;
|
$_POST['__PS_BASE_URI__'] = __PS_BASE_URI__;
|
||||||
parent::__construct();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function display()
|
public function display()
|
||||||
|
|||||||
Reference in New Issue
Block a user