aboutsummaryrefslogtreecommitdiffstats
path: root/404.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-17 22:00:39 +0200
committerThomas Lange <code@nerdmind.de>2021-06-17 22:00:39 +0200
commit5555624546ea48d6327700f32b80848e0662dc90 (patch)
tree47d61fb756a6cb008aaf33586d292fcfe43da2a1 /404.php
parent91d8a28c664afa5378735bcd0efe068dd74d589f (diff)
parent0a2614cb69fc732c2115ef2f0c356f39f602d311 (diff)
downloadblog-5555624546ea48d6327700f32b80848e0662dc90.tar.gz
blog-5555624546ea48d6327700f32b80848e0662dc90.tar.xz
blog-5555624546ea48d6327700f32b80848e0662dc90.zip
Merge branch 'master' into 'optimization'optimization
Diffstat (limited to '404.php')
-rw-r--r--404.php23
1 files changed, 5 insertions, 18 deletions
diff --git a/404.php b/404.php
index f3c76de..0fdf419 100644
--- a/404.php
+++ b/404.php
@@ -9,22 +9,9 @@ require_once 'core/application.php';
#===============================================================================
http_response_code(404);
-#===============================================================================
-# TRY: Template\Exception
-#===============================================================================
-try {
- $MainTemplate = Template\Factory::build('main');
- $MainTemplate->set('NAME', '404 Not Found');
- $MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]);
- $MainTemplate->set('HTML', Template\Factory::build('404'));
-
- echo $MainTemplate;
-}
+$MainTemplate = Template\Factory::build('main');
+$MainTemplate->set('NAME', '404 Not Found');
+$MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]);
+$MainTemplate->set('HTML', Template\Factory::build('404'));
-#===============================================================================
-# CATCH: Template\Exception
-#===============================================================================
-catch(Template\Exception $Exception) {
- Application::exit($Exception->getMessage());
-}
-?> \ No newline at end of file
+echo $MainTemplate;