[+] BO : added a new option for the products : do they appear in the catalog, in the search, both or neither
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13638 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -259,6 +259,7 @@ class AdminControllerCore extends Controller
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->controller_type = 'admin';
|
||||
$this->controller_name = get_class($this);
|
||||
if (strpos($this->controller_name, 'Controller'))
|
||||
$this->controller_name = substr($this->controller_name, 0, -10);
|
||||
|
||||
@@ -74,6 +74,8 @@ abstract class ControllerCore
|
||||
|
||||
protected $redirect_after = null;
|
||||
|
||||
public $controller_type;
|
||||
|
||||
/**
|
||||
* check that the controller is available for the current user/visitor
|
||||
*/
|
||||
|
||||
@@ -60,6 +60,8 @@ class FrontControllerCore extends Controller
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->controller_type = 'front';
|
||||
|
||||
global $useSSL;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
@@ -34,9 +34,11 @@ abstract class ModuleAdminControllerCore extends AdminController
|
||||
* @var Module
|
||||
*/
|
||||
public $module;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->controller_type = 'moduleadmin';
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$tab = new Tab($this->id);
|
||||
|
||||
@@ -37,6 +37,8 @@ class ModuleFrontControllerCore extends FrontController
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->controller_type = 'modulefront';
|
||||
|
||||
$this->module = Module::getInstanceByName(Tools::getValue('module'));
|
||||
if (!$this->module->active)
|
||||
Tools::redirect('index');
|
||||
|
||||
Reference in New Issue
Block a user