Fixed: Warning triggered when subscription controller is accessed without a token
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -665,6 +665,11 @@ class FrontControllerCore extends Controller
|
||||
public function initCursedPage()
|
||||
{
|
||||
$this->displayMaintenancePage();
|
||||
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
$this->context->smarty->assign($this->initLogoAndFavicon());
|
||||
$front_controller = preg_match('/ModuleFrontController$/', get_class($this)) ? new FrontController() : $this;
|
||||
$this->layout = $front_controller->getTemplatePath($this->getThemeDir().'access-denied.tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user