From c9a74e3a73bd68f1265c88a2559973f62fc510a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 11 Jan 2024 16:05:02 +0100 Subject: [PATCH] why am i stupid --- templates/navpages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/navpages.php b/templates/navpages.php index 51d4cee..43c24bc 100644 --- a/templates/navpages.php +++ b/templates/navpages.php @@ -14,7 +14,7 @@ foreach($site_dirs as $site_dir){ $navsite = $navpage_template; $site_location = "$site_dir.$domain.$tld/$default_page"; $site_class = "class=\"navsite_link\""; - $site_name = str_replace("_", " ", $site_location); + $site_name = str_replace("_", " ", $site_dir); $navsite = str_replace("__CLASS__", $site_class, $navsite); $navsite = str_replace("__LOCATION__", $site_location, $navsite); $navsite = str_replace("__NAME__", $site_name, $navsite); @@ -34,7 +34,7 @@ foreach($site_dirs as $site_dir){ $page_location = "$site_dir.$domain.$tld/$page_dir"; - $page_name = str_replace("_", " ", $page_location); + $page_name = str_replace("_", " ", $page_dir); $navpage = str_replace("__CLASS__", $page_class, $navpage); $navpage = str_replace("__LOCATION__", $page_location, $navpage);