diff --git a/lib/page.php b/lib/page.php index f9a380a..df1a4db 100644 --- a/lib/page.php +++ b/lib/page.php @@ -99,11 +99,12 @@ function renderPage($page_name = null, $site_name = null): array else{ $page_tmp = file_get_contents($routerConfig["template_dir"] . "403.html"); $pageMetadata = parsePageTag($page_tmp); - $page = str_replace("__DEFAULT_LINK__", "/" . $routerConfig["default_site"] . "/" . $routerConfig["default_page"], $pageMetadata["output"]); + $page = $pageMetadata["output"]; http_response_code(403); } } + $page = str_replace("__DEFAULT_LINK__", "/" . $routerConfig["default_site"] . "/" . $routerConfig["default_page"], $page); if(!is_string($page)){ $page = ""; }