Skip to content
Snippets Groups Projects
Commit 7a90f9e5 authored by Thomas Lake's avatar Thomas Lake :wrench:
Browse files

Return 404 error for pages that don't exist

parent 15f50d07
No related branches found
No related tags found
No related merge requests found
......@@ -147,6 +147,7 @@ if (file_exists($comppath)) {
$compoutput = ob_get_contents();
ob_end_clean();
} else {
header("HTTP/1.1 404 Not Found");
$smarty->assign("body", "Component ".$component['component']." not found");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment