test
This commit is contained in:
parent
c2cb5d4473
commit
6b08e4e8ad
@ -3,7 +3,7 @@
|
||||
function getDynamicPermission($file): int {
|
||||
global $routerConfig;
|
||||
try {
|
||||
$page_tmp = include_once($file);
|
||||
$page_tmp = include($file);
|
||||
$permission_level = $page_tmp["parameters"]["minimal_permission_level"];
|
||||
|
||||
if (!is_numeric($permission_level) || $permission_level <= 0) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
function renderDynamicPage($page_file): array
|
||||
{
|
||||
return require_once $page_file;
|
||||
return require $page_file;
|
||||
}
|
||||
|
||||
function parsePageTag($input): array
|
||||
|
Loading…
Reference in New Issue
Block a user