Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-31 00:25:28 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-31 00:25:28 +0300
commitb9d3c7ce9910de8f8c5daf100e389bd48707ed31 (patch)
treec31ae8a7290d1832ae93a015a06ec5a42da5c354 /core/FrontController.php
parentbdde719483e2204bdca8b7ac842cbc77bc909dd8 (diff)
Send HTTP status 500 for fatal errors
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php2
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));