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"]; }