diff options
-rw-r--r-- | 403.php | 2 | ||||
-rw-r--r-- | 404.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ http_response_code(403); try { $MainTemplate = Template\Factory::build('main'); $MainTemplate->set('NAME', '403 Forbidden'); - $MainTemplate->set('HEAD', ['NAME' => '403 Forbidden']); + $MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]); $MainTemplate->set('HTML', Template\Factory::build('403')); echo $MainTemplate; @@ -15,7 +15,7 @@ http_response_code(404); try { $MainTemplate = Template\Factory::build('main'); $MainTemplate->set('NAME', '404 Not Found'); - $MainTemplate->set('HEAD', ['NAME' => '404 Not Found']); + $MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]); $MainTemplate->set('HTML', Template\Factory::build('404')); echo $MainTemplate; |