fix wrong array

This commit is contained in:
Bruno Rybársky 2024-01-16 20:57:51 +01:00
parent 39dc3b72bb
commit 6c1f4b6a9d

@ -54,11 +54,11 @@ function getPage($page_name = null){
$page_name = $routerRequest["page_name"];
}
$dynamic_page_file = $routerRequest["page_dir"] . $routerRequest["subdomain"] . "/" . $page_name . ".php";
$page_file = $routerRequest["page_dir"] . $routerRequest["subdomain"] . "/" . $page_name . ".html";
$dynamic_page_file = $routerConfig["page_dir"] . $routerRequest["subdomain"] . "/" . $page_name . ".php";
$page_file = $routerConfig["page_dir"] . $routerRequest["subdomain"] . "/" . $page_name . ".html";
$dynamic_page_file_global = $routerRequest["page_dir"] . "global/" . $page_name . ".php";
$page_file_global = $routerRequest["page_dir"] . "global/" . $page_name . ".html";
$dynamic_page_file_global = $routerConfig["page_dir"] . "global/" . $page_name . ".php";
$page_file_global = $routerConfig["page_dir"] . "global/" . $page_name . ".html";
$skeleton = file_get_contents($routerConfig["template_dir"] . "skeleton.html");
$nav = file_get_contents($routerConfig["template_dir"] . "nav.html");