diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-29 03:41:38 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-29 03:41:38 +0200 |
commit | 70e4ed69f3401a895d29415f9ca523dc637c5c8e (patch) | |
tree | 8e49f8e30cec70ab4a85653170d405cad48849d6 /404.php | |
parent | 41f8a3e28ecbc36f52eddd72e77effc3339279a1 (diff) | |
download | blog-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 '404.php')
-rw-r--r-- | 404.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |