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");