diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-28 18:27:38 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2020-04-28 18:27:38 +0200 |
commit | 30b516bfcf56249c6954bd1aaf4e3c52b18f57fe (patch) | |
tree | c2e44ee8c1e60135b771286df0f7dc9610100b23 /app/class/Controllerpage.php | |
parent | 3183ce9dd42211b7279c7ce545c414452f5a9ef0 (diff) | |
download | wcms-30b516bfcf56249c6954bd1aaf4e3c52b18f57fe.tar.gz wcms-30b516bfcf56249c6954bd1aaf4e3c52b18f57fe.zip |
fix: error codes on error pages
- 404 on page not exist
- 500 on unknown internal error
Fixes #90
Diffstat (limited to 'app/class/Controllerpage.php')
-rw-r--r-- | app/class/Controllerpage.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/class/Controllerpage.php b/app/class/Controllerpage.php index ad6bf82..b5679a9 100644 --- a/app/class/Controllerpage.php +++ b/app/class/Controllerpage.php @@ -158,6 +158,7 @@ class Controllerpage extends Controller echo 'Please render this page'; } } else { + http_response_code(404); $this->showtemplate( 'alert', ['page' => $this->page, 'pageexist' => $pageexist, 'canedit' => $this->canedit()] |