summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-02-26 05:01:57 +0100
committerThomas Lange <code@nerdmind.de>2017-02-26 05:01:57 +0100
commitc5e03a48f9c31d19270e92e670395d7e7911bf17 (patch)
tree0b64de460e635819453bb16eb109e2bf79eaa24a
parentec5f33704af1ec27304824046ba0c34212e721d1 (diff)
downloadblog-c5e03a48f9c31d19270e92e670395d7e7911bf17.tar.gz
blog-c5e03a48f9c31d19270e92e670395d7e7911bf17.tar.xz
blog-c5e03a48f9c31d19270e92e670395d7e7911bf17.zip
Added different template parameter for the case that the page is displayed in the administration area.
-rw-r--r--system/403.php1
-rw-r--r--system/404.php1
2 files changed, 2 insertions, 0 deletions
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."