diff --git a/lib/page.php b/lib/page.php index 497f4d8..75dd592 100644 --- a/lib/page.php +++ b/lib/page.php @@ -97,13 +97,14 @@ function getPage($page_name = null): array|false|string $page_tmp = file_get_contents($routerConfig["template_dir"] . "403.html"); $pageMetadata = parsePageTag($page_tmp); $page = $pageMetadata["output"]; - if(!is_string($page)){ - $page = ""; - } http_response_code(403); } } + if(!is_string($page)){ + $page = ""; + } + if(!empty($pageMetadata["parameters"]["page_title"])){ $page_title = $pageMetadata["parameters"]["page_title"]; }