From c5e03a48f9c31d19270e92e670395d7e7911bf17 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 26 Feb 2017 05:01:57 +0100 Subject: Added different template parameter for the case that the page is displayed in the administration area. --- system/403.php | 1 + system/404.php | 1 + 2 files changed, 2 insertions(+) diff --git a/system/403.php b/system/403.php index 08ef44d..46c5198 100644 --- a/system/403.php +++ b/system/403.php @@ -11,6 +11,7 @@ if(!defined('ROOT')) { #=============================================================================== try { $MainTemplate = Template\Factory::build('main'); + $MainTemplate->set('NAME', '403 Forbidden'); $MainTemplate->set('HEAD', [ 'NAME' => '403 Forbidden', 'DESC' => "You don't have permission to access {$_SERVER['REQUEST_URI']} on this server." diff --git a/system/404.php b/system/404.php index a92e9d6..1553291 100644 --- a/system/404.php +++ b/system/404.php @@ -11,6 +11,7 @@ if(!defined('ROOT')) { #=============================================================================== try { $MainTemplate = Template\Factory::build('main'); + $MainTemplate->set('NAME', '404 Not Found'); $MainTemplate->set('HEAD', [ 'NAME' => '404 Not Found', 'DESC' => "The requested URL {$_SERVER['REQUEST_URI']} was not found on this server." -- cgit v1.2.3