aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--app/class/Controllerpage.php1
-rw-r--r--index.php1
3 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 492b6c9..0bb744f 100644
--- a/README.md
+++ b/README.md
@@ -179,7 +179,7 @@ Then, to make the release, run the following command:
To only build the release zip, simply run `make dist`. This will create a zip file in `dist/` of the current version.
[github]: https://github.com/vincent-peugnet/wcms/workflows/checks/badge.svg
-[action]: https://github.com/vincent-peugnet/wcms/actions
+[action]: https://github.com/vincent-peugnet/wcms/actions?query=branch%3Amaster+workflow%3Achecks
[codestyle]: https://img.shields.io/badge/code%20style-PSR12-brightgreen
[phpstan]: https://img.shields.io/badge/phpstan-level%205-green
[coverage]: https://coveralls.io/repos/github/vincent-peugnet/wcms/badge.svg?branch=master
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()]
diff --git a/index.php b/index.php
index 41a2184..154d947 100644
--- a/index.php
+++ b/index.php
@@ -38,5 +38,6 @@ try {
Sentry\captureException($e);
}
Logger::errorex($e, true);
+ http_response_code(500);
echo '<h1>⚠ Woops ! There is a little problem : </h1>', $e->getMessage(), "\n";
}