Fixed: Warning triggered when subscription controller is accessed without a token

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
shazar rahman
2026-09-01 12:58:06 +05:30
parent 5c52b86487
commit cd7370a335
2 changed files with 85 additions and 0 deletions

View File

@@ -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');
}
/**