From 50d9fd2e39c9c694b9c547b9f03242d1b212c4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 3 Feb 2024 16:54:50 +0100 Subject: [PATCH] fix --- lib/page.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"]; }