Fix navigation
This commit is contained in:
parent
201a728e7d
commit
b386ff5fbd
@ -82,8 +82,6 @@ function generateNavigation(): string
|
|||||||
}
|
}
|
||||||
elseif($page_file_tmp[1] == "php"){
|
elseif($page_file_tmp[1] == "php"){
|
||||||
$pageMetadata = getDynamicMetadata($page_file_path);
|
$pageMetadata = getDynamicMetadata($page_file_path);
|
||||||
echo $page_file_path;
|
|
||||||
print_r($pageMetadata);
|
|
||||||
$page_required_permission = getDynamicPermission($pageMetadata);
|
$page_required_permission = getDynamicPermission($pageMetadata);
|
||||||
|
|
||||||
if(!empty($pageMetadata["parameters"]["page_title"])){
|
if(!empty($pageMetadata["parameters"]["page_title"])){
|
||||||
|
@ -35,7 +35,8 @@ function generateSitemap(): void{
|
|||||||
$page_required_permission = $routerConfig["page"]["default_permissions"];
|
$page_required_permission = $routerConfig["page"]["default_permissions"];
|
||||||
}
|
}
|
||||||
} elseif ($page_file_tmp[1] == "php") {
|
} elseif ($page_file_tmp[1] == "php") {
|
||||||
$page_required_permission = getDynamicPermission($page_file_path);
|
$pageMetadata = getDynamicMetadata($page_file_path);
|
||||||
|
$page_required_permission = getDynamicPermission($pageMetadata);
|
||||||
} else {
|
} else {
|
||||||
$page_required_permission = $routerConfig["page"]["default_permissions"];
|
$page_required_permission = $routerConfig["page"]["default_permissions"];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user