error handling

This commit is contained in:
2024-02-03 16:46:09 +01:00
parent a2edadd640
commit 0249aad0a3
5 changed files with 75 additions and 45 deletions

View File

@@ -97,6 +97,9 @@ 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(!$page){
$page = "";
}
http_response_code(403);
}
}