aboutsummaryrefslogtreecommitdiffstats
path: root/403.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-29 03:41:38 +0200
committerThomas Lange <code@nerdmind.de>2017-04-29 03:41:38 +0200
commit70e4ed69f3401a895d29415f9ca523dc637c5c8e (patch)
tree8e49f8e30cec70ab4a85653170d405cad48849d6 /403.php
parent41f8a3e28ecbc36f52eddd72e77effc3339279a1 (diff)
downloadblog-70e4ed69f3401a895d29415f9ca523dc637c5c8e.tar.gz
blog-70e4ed69f3401a895d29415f9ca523dc637c5c8e.tar.xz
blog-70e4ed69f3401a895d29415f9ca523dc637c5c8e.zip
Template method "get" is now used to get the previously defined name of the page (instead of typing it twice).
Diffstat (limited to '403.php')
-rw-r--r--403.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/403.php b/403.php
index 24789a9..d0bcf87 100644
--- a/403.php
+++ b/403.php
@@ -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;