Dispatcher: fix trigger404 using nonexistent ViewErrorPage class

Use the existing errorPage() helper, consistent with trigger400 and
trigger403.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 12:16:06 +01:00
parent a71b8c9717
commit 5832ce6228

View File

@@ -90,7 +90,7 @@ class Dispatcher
private static function trigger404()
{
http_response_code(404);
$page = new ViewErrorPage('Page not found!');
$page->showContent();
self::errorPage('Page not found!', 'The page you requested could not be found.');
exit;
}
}