diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-31 00:25:28 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-31 00:25:28 +0300 |
commit | b9d3c7ce9910de8f8c5daf100e389bd48707ed31 (patch) | |
tree | c31ae8a7290d1832ae93a015a06ec5a42da5c354 /core | |
parent | bdde719483e2204bdca8b7ac842cbc77bc909dd8 (diff) |
Send HTTP status 500 for fatal errors
Diffstat (limited to 'core')
-rw-r--r-- | core/FrontController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/FrontController.php b/core/FrontController.php index 58ac217905..70ac9c587c 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -253,6 +253,8 @@ class FrontController extends Singleton { $lastError = error_get_last(); if (!empty($lastError) && $lastError['type'] == E_ERROR) { + Common::sendResponseCode(500); + $controller = FrontController::getInstance(); $controller->init(); $message = $controller->dispatch('CorePluginsAdmin', 'safemode', array($lastError)); |