why am i stupid

This commit is contained in:
Bruno Rybársky 2024-01-11 16:05:02 +01:00
parent 2f6961853e
commit c9a74e3a73

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