diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-08-08 20:31:06 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-08-08 20:31:06 +0400 |
commit | a2f3959a8c3f730d871fbe0e3cc437a64ac98494 (patch) | |
tree | ab817d25d074378eddcecbe9d8a5ec562c9bb906 /core | |
parent | 71013e7396ad59c3b227d90f8912c56c90251376 (diff) |
refs #5958 add http error code 500 header in case of piwik errors.
Could we also add a call to error_log to log in the error.log ?
(we cannot use Log::debug or so as the logger may not be initialised yet)
Diffstat (limited to 'core')
-rw-r--r-- | core/testMinimumPhpVersion.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/testMinimumPhpVersion.php b/core/testMinimumPhpVersion.php index 1be348e570..5286e97116 100644 --- a/core/testMinimumPhpVersion.php +++ b/core/testMinimumPhpVersion.php @@ -96,6 +96,8 @@ if (!function_exists('Piwik_ExitWithMessage')) { function Piwik_ExitWithMessage($message, $optionalTrace = false, $optionalLinks = false, $optionalLinkBack = false) { @header('Content-Type: text/html; charset=utf-8'); + @header('HTTP/1.1 500 Internal Server Error'); + if ($optionalTrace) { $optionalTrace = '<span class="exception-backtrace">Backtrace:<br /><pre>' . $optionalTrace . '</pre></span>'; } |