// didn't realise not-found.php was so smol

This commit is contained in:
flash 2019-12-04 01:12:15 +01:00
parent 112b71b481
commit 9cee637094
2 changed files with 1 additions and 7 deletions

View file

@ -6,7 +6,7 @@ require_once '../misuzu.php';
$requestPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if($requestPath !== '/' && $requestPath !== $_SERVER['PHP_SELF']) {
require_once MSZ_ROOT . '/public/not-found.php';
echo render_error(404);
return;
}

View file

@ -1,6 +0,0 @@
<?php
namespace Misuzu;
require_once '../misuzu.php';
echo render_error(404);