forked from Adleraci/adlerka.top
fix stupid mistake
This commit is contained in:
parent
1f915ce374
commit
1a3dc537b7
@ -76,9 +76,6 @@ function getPage($page_name = null): array|false|string
|
|||||||
$page = file_get_contents($routerConfig["template_dir"] . "404.html");
|
$page = file_get_contents($routerConfig["template_dir"] . "404.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
$pageMetadata = parsePageTag($page);
|
|
||||||
|
|
||||||
$page = $pageMetadata["output"];
|
|
||||||
print_r($pageMetadata["parameters"]);
|
print_r($pageMetadata["parameters"]);
|
||||||
if(!empty($pageMetadata["parameters"]["minimal_permission_level"])){
|
if(!empty($pageMetadata["parameters"]["minimal_permission_level"])){
|
||||||
$page_required_permission = intval($pageMetadata["parameters"]["minimal_permission_level"]);
|
$page_required_permission = intval($pageMetadata["parameters"]["minimal_permission_level"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user