Fix navigation

This commit is contained in:
Bruno Rybársky 2024-02-24 10:11:18 +01:00
parent 201a728e7d
commit b386ff5fbd
2 changed files with 2 additions and 3 deletions

@ -82,8 +82,6 @@ function generateNavigation(): string
}
elseif($page_file_tmp[1] == "php"){
$pageMetadata = getDynamicMetadata($page_file_path);
echo $page_file_path;
print_r($pageMetadata);
$page_required_permission = getDynamicPermission($pageMetadata);
if(!empty($pageMetadata["parameters"]["page_title"])){

@ -35,7 +35,8 @@ function generateSitemap(): void{
$page_required_permission = $routerConfig["page"]["default_permissions"];
}
} elseif ($page_file_tmp[1] == "php") {
$page_required_permission = getDynamicPermission($page_file_path);
$pageMetadata = getDynamicMetadata($page_file_path);
$page_required_permission = getDynamicPermission($pageMetadata);
} else {
$page_required_permission = $routerConfig["page"]["default_permissions"];
}