From 6c1f4b6a9d1782fdf65fd27d414e2955504bc7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Tue, 16 Jan 2024 20:57:51 +0100 Subject: [PATCH] fix wrong array --- lib/routing.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routing.php b/lib/routing.php index 5fe970d..b80be39 100644 --- a/lib/routing.php +++ b/lib/routing.php @@ -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");