This commit is contained in:
2025-08-07 21:16:42 +02:00
parent f5dd06f0bc
commit 8c05aae2ab
128 changed files with 7270 additions and 10 deletions

View File

@@ -0,0 +1,34 @@
<?php
/**
* Creative Elements - live Theme & Page Builder
*
* @author WebshopWorks
* @copyright 2019-2022 WebshopWorks.com
* @license One domain support license
*/
defined('_PS_VERSION_') or die;
class Category extends CategoryCore
{
/*
* module: creativeelements
* date: 2025-07-13 11:17:03
* version: 2.5.11
*/
const CE_OVERRIDE = true;
/*
* module: creativeelements
* date: 2025-07-13 11:17:03
* version: 2.5.11
*/
public function __construct($idCategory = null, $idLang = null, $idShop = null)
{
parent::__construct($idCategory, $idLang, $idShop);
$ctrl = Context::getContext()->controller;
if ($ctrl instanceof CategoryController && !CategoryController::$initialized && !$this->active && Tools::getIsset('id_employee') && Tools::getIsset('adtoken')) {
$tab = 'AdminCategories';
if (Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) Tools::getValue('id_employee')) == Tools::getValue('adtoken')) {
$this->active = 1;
}
}
}
}