Fix navigation
This commit is contained in:
parent
178e1e7e19
commit
201a728e7d
@ -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"])){
|
||||
|
Loading…
Reference in New Issue
Block a user