Make default 404 page use 404 status code

This commit is contained in:
Jens Herlevsen 2016-01-24 19:04:22 +01:00
parent af4f42e208
commit 2350e30853
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class Controller
/*
* If the page was not found, render the 404 page - either provided by the theme or the built-in one.
*/
if (!$page) {
if (!$page || $url === '404') {
$this->setStatusCode(404);
// Log the 404 request