This commit is contained in:
Bruno Rybársky 2024-02-04 09:01:28 +01:00
parent c2cb5d4473
commit 6b08e4e8ad
2 changed files with 2 additions and 2 deletions

@ -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