diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index 01e39fdb8..77bac8584 100644 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -664,17 +664,11 @@ class FrontControllerCore extends Controller */ public function initCursedPage() { - $this->displayMaintenancePage(); - header('HTTP/1.1 403 Forbidden'); $this->setMedia(); $this->initHeader(); - if (!isset($this->context->cart)) { - $this->context->cart = new Cart(); - } - if (!$this->useMobileTheme()) { $this->context->smarty->assign(array( 'HOOK_HEADER' => Hook::exec('displayHeader'), @@ -691,14 +685,12 @@ class FrontControllerCore extends Controller 'css_files' => $this->css_files, 'js_files' => ($this->getLayout() && (bool)Configuration::get('PS_JS_DEFER')) ? array() : $this->js_files, 'js_defer' => (bool)Configuration::get('PS_JS_DEFER'), - 'errors' => $this->errors, 'display_header' => $this->display_header, 'display_footer' => $this->display_footer, )); $front_controller = preg_match('/ModuleFrontController$/', get_class($this)) ? new FrontController() : $this; $template = $this->context->smarty->fetch($front_controller->getTemplatePath($this->getThemeDir().'access-denied.tpl')); - $this->context->controller = $this; $this->context->smarty->assign('template', $template); $this->layout = $this->getLayout(); }