aboutsummaryrefslogtreecommitdiffstats
path: root/403.php
diff options
context:
space:
mode:
Diffstat (limited to '403.php')
-rw-r--r--403.php22
1 files changed, 6 insertions, 16 deletions
diff --git a/403.php b/403.php
index 54f01ba..82f6836 100644
--- a/403.php
+++ b/403.php
@@ -10,21 +10,11 @@ require_once 'core/application.php';
http_response_code(403);
#===============================================================================
-# TRY: Template\Exception
+# Build document
#===============================================================================
-try {
- $MainTemplate = Template\Factory::build('main');
- $MainTemplate->set('NAME', '403 Forbidden');
- $MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]);
- $MainTemplate->set('HTML', Template\Factory::build('403'));
+$MainTemplate = Template\Factory::build('main');
+$MainTemplate->set('NAME', '403 Forbidden');
+$MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]);
+$MainTemplate->set('HTML', Template\Factory::build('403'));
- echo $MainTemplate;
-}
-
-#===============================================================================
-# CATCH: Template\Exception
-#===============================================================================
-catch(Template\Exception $Exception) {
- Application::exit($Exception->getMessage());
-}
-?> \ No newline at end of file
+echo $MainTemplate;