35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Creative Elements - live Theme & Page Builder
|
|
*
|
|
* @author WebshopWorks
|
|
* @copyright 2019-2023 WebshopWorks.com
|
|
* @license One domain support license
|
|
*/
|
|
defined('_PS_VERSION_') or exit;
|
|
class Manufacturer extends ManufacturerCore
|
|
{
|
|
/*
|
|
* module: creativeelements
|
|
* date: 2024-06-06 09:08:13
|
|
* version: 2.9.14
|
|
*/
|
|
const CE_OVERRIDE = true;
|
|
/*
|
|
* module: creativeelements
|
|
* date: 2024-06-06 09:08:13
|
|
* version: 2.9.14
|
|
*/
|
|
public function __construct($id = null, $idLang = null)
|
|
{
|
|
parent::__construct($id, $idLang);
|
|
$ctrl = Context::getContext()->controller;
|
|
if ($ctrl instanceof ManufacturerController && !ManufacturerController::$initialized && !$this->active && Tools::getIsset('id_employee') && Tools::getIsset('adtoken')) {
|
|
$tab = 'AdminManufacturers';
|
|
if (Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) Tools::getValue('id_employee')) == Tools::getValue('adtoken')) {
|
|
$this->active = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|