Always include nav.html
This commit is contained in:
@@ -22,6 +22,7 @@ function generateNavigation(): string
|
||||
global $routerConfig;
|
||||
global $routerRequest;
|
||||
|
||||
$nav = file_get_contents($routerConfig["template_dir"] . "nav.html");
|
||||
$site_dirs = array_diff(scandir($routerConfig["page_dir"]), array('.', '..'));
|
||||
|
||||
$nav_out = "";
|
||||
@@ -92,7 +93,7 @@ function generateNavigation(): string
|
||||
}
|
||||
}
|
||||
|
||||
return $nav_out;
|
||||
return str_replace("__NAV_PAGES__", $nav_out, $nav);
|
||||
}
|
||||
|
||||
function getNavigationEndpoint() :array{
|
||||
|
Reference in New Issue
Block a user