add debug print
This commit is contained in:
parent
f1dc7d866f
commit
1f915ce374
10
lib/page.php
10
lib/page.php
@ -56,9 +56,9 @@ function getPage($page_name = null): array|false|string
|
|||||||
|
|
||||||
}
|
}
|
||||||
elseif (file_exists($page_file_global)){
|
elseif (file_exists($page_file_global)){
|
||||||
$pagetmp = file_get_contents($page_file_global);
|
$page_tmp = file_get_contents($page_file_global);
|
||||||
|
|
||||||
$pageMetadata = parsePageTag($pagetmp);
|
$pageMetadata = parsePageTag($page_tmp);
|
||||||
$page = $pageMetadata["output"];
|
$page = $pageMetadata["output"];
|
||||||
}
|
}
|
||||||
elseif (file_exists($dynamic_page_file)){
|
elseif (file_exists($dynamic_page_file)){
|
||||||
@ -67,9 +67,9 @@ function getPage($page_name = null): array|false|string
|
|||||||
$page = $pageMetadata["output"];
|
$page = $pageMetadata["output"];
|
||||||
}
|
}
|
||||||
elseif (file_exists($page_file)){
|
elseif (file_exists($page_file)){
|
||||||
$pagetmp = file_get_contents($page_file);
|
$page_tmp = file_get_contents($page_file);
|
||||||
|
|
||||||
$pageMetadata = parsePageTag($pagetmp);
|
$pageMetadata = parsePageTag($page_tmp);
|
||||||
$page = $pageMetadata["output"];
|
$page = $pageMetadata["output"];
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -79,7 +79,7 @@ function getPage($page_name = null): array|false|string
|
|||||||
$pageMetadata = parsePageTag($page);
|
$pageMetadata = parsePageTag($page);
|
||||||
|
|
||||||
$page = $pageMetadata["output"];
|
$page = $pageMetadata["output"];
|
||||||
|
print_r($pageMetadata["parameters"]);
|
||||||
if(!empty($pageMetadata["parameters"]["minimal_permission_level"])){
|
if(!empty($pageMetadata["parameters"]["minimal_permission_level"])){
|
||||||
$page_required_permission = intval($pageMetadata["parameters"]["minimal_permission_level"]);
|
$page_required_permission = intval($pageMetadata["parameters"]["minimal_permission_level"]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user