diff options
Diffstat (limited to 'htdocs/deletepost.php')
-rw-r--r-- | htdocs/deletepost.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/htdocs/deletepost.php b/htdocs/deletepost.php index 7ebec19..50d35c5 100644 --- a/htdocs/deletepost.php +++ b/htdocs/deletepost.php @@ -48,8 +48,14 @@ if (isset($_GET['confirmed'])) { require_once "src/footer.inc.php"; function errorNotFound() { - // TODO: Better 404 error - echo "404"; + // Get the 404 page + $page = Page::getByUrl('404'); + if ($page) { + echo $page->getContent(); + } else { + echo "Error: Page not found."; + } + require_once "src/footer.inc.php"; exit; } |