From 39dc3b72bb617353a8ea97f5a3701a6f77edde3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Tue, 16 Jan 2024 20:56:37 +0100 Subject: [PATCH] fix array index --- lib/navpages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/navpages.php b/lib/navpages.php index 61d157f..6c19c29 100644 --- a/lib/navpages.php +++ b/lib/navpages.php @@ -5,12 +5,12 @@ function generateNavigation() global $routerConfig; global $routerRequest; - $site_dirs = array_diff(scandir($routerConfig["static_page_dir"]), array('.', '..')); + $site_dirs = array_diff(scandir($routerConfig["page_dir"]), array('.', '..')); $nav_out = ""; foreach ($site_dirs as $site_dir) { - $pages_dir = array_diff(scandir($routerConfig["static_page_dir"] . $site_dir), array('.', '..')); + $pages_dir = array_diff(scandir($routerConfig["page_dir"] . $site_dir), array('.', '..')); $site_name = str_replace("_", " ", $site_dir); if ($site_name == "global") {