From 201a728e7dea63b7b589870e9c394a60474e2741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 24 Feb 2024 10:10:08 +0100 Subject: [PATCH] Fix navigation --- lib/navigation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"])){