From b386ff5fbd2f37d268061566f18be561f24e8b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 24 Feb 2024 10:11:18 +0100 Subject: [PATCH] Fix navigation --- lib/navigation.php | 2 -- lib/sitemap.php | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/navigation.php b/lib/navigation.php index d4d85eb..df9fe06 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -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"])){ diff --git a/lib/sitemap.php b/lib/sitemap.php index 7523edb..967be22 100644 --- a/lib/sitemap.php +++ b/lib/sitemap.php @@ -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"]; }