1
0

fix 404 page http code

This commit is contained in:
2020-01-20 18:09:35 +01:00
parent 5acdd0a69a
commit 3c3d0bf51b
3 changed files with 2 additions and 6 deletions

View File

@@ -90,9 +90,6 @@ class Website
{
try
{
$frameOpt->statuscode = 404;
$frameOpt->title = 'Page not found';
$route = URLRoute::getNotFoundRoute($uri);
$route->parameter['message'] = $message;
@@ -119,9 +116,6 @@ class Website
try
{
if ($frameOpt === null) $frameOpt = new PageFrameOptions();
$frameOpt->statuscode = 500;
$frameOpt->title = 'Internal Server Error';
$frameOpt->frame = 'error_frame.php';
$route = URLRoute::getServerErrorRoute($_SERVER['REQUEST_URI']);