more debug print

This commit is contained in:
Richard Mikloš 2024-01-22 09:30:29 +01:00
parent 486cf8f0e3
commit 1fb35cbf6a

@ -21,8 +21,6 @@ $page = basename($_SERVER['QUERY_STRING']);
$nav = include_ob("$template_dir/navigation.html");
echo $_SERVER['QUERY_STRING'];
if(empty($page)){
$page = 'index';
}
@ -42,9 +40,13 @@ $page_file = "$template_dir/404.html";
foreach($paths_to_check as $page_dir){
$page_file_tmp = "$page_dir/$page.html";
if(file_exists($page_file_tmp)){
echo "$page_file_tmp exists";
$page_file = $page_file_tmp;
break;
}
else{
echo "$page_file_tmp exists'n t";
}
}
$page_data = include_ob($page_file);