diff --git a/lib/navigation.php b/lib/navigation.php index 4e85a19..d4d85eb 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -2,13 +2,11 @@ function getDynamicMetadata($file): array{ - echo $file; return include($file); } function getDynamicPermission($metadata): int { global $routerConfig; - print_r($metadata); $params = $metadata["parameters"]; try { $permission_level = $params["minimal_permission_level"]; @@ -84,6 +82,8 @@ 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"])){