// didn't realise not-found.php was so smol
This commit is contained in:
parent
112b71b481
commit
9cee637094
2 changed files with 1 additions and 7 deletions
|
@ -6,7 +6,7 @@ require_once '../misuzu.php';
|
||||||
$requestPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
$requestPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||||
|
|
||||||
if($requestPath !== '/' && $requestPath !== $_SERVER['PHP_SELF']) {
|
if($requestPath !== '/' && $requestPath !== $_SERVER['PHP_SELF']) {
|
||||||
require_once MSZ_ROOT . '/public/not-found.php';
|
echo render_error(404);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?php
|
|
||||||
namespace Misuzu;
|
|
||||||
|
|
||||||
require_once '../misuzu.php';
|
|
||||||
|
|
||||||
echo render_error(404);
|
|
Loading…
Reference in a new issue