diff --git a/classes/controller/Controller.php b/classes/controller/Controller.php index 669107864..06551ff51 100644 --- a/classes/controller/Controller.php +++ b/classes/controller/Controller.php @@ -150,7 +150,6 @@ abstract class ControllerCore $this->init(); if ($this->checkAccess()) { - // setMedia MUST be called before postProcess if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) $this->setMedia(); diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index 538cb9e4d..2d6ec41ed 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -53,7 +53,6 @@ class CategoryControllerCore extends FrontController public function canonicalRedirection($canonicalURL = '') { - return ; if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop()) { $this->redirect_after = '404';