Skip to content
Extraits de code Groupes Projets
Valider a2f3959a rédigé par mattab's avatar mattab
Parcourir les fichiers

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)
parent 71013e73
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -96,6 +96,8 @@ if (!function_exists('Piwik_ExitWithMessage')) { ...@@ -96,6 +96,8 @@ if (!function_exists('Piwik_ExitWithMessage')) {
function Piwik_ExitWithMessage($message, $optionalTrace = false, $optionalLinks = false, $optionalLinkBack = false) function Piwik_ExitWithMessage($message, $optionalTrace = false, $optionalLinks = false, $optionalLinkBack = false)
{ {
@header('Content-Type: text/html; charset=utf-8'); @header('Content-Type: text/html; charset=utf-8');
@header('HTTP/1.1 500 Internal Server Error');
if ($optionalTrace) { if ($optionalTrace) {
$optionalTrace = '<span class="exception-backtrace">Backtrace:<br /><pre>' . $optionalTrace . '</pre></span>'; $optionalTrace = '<span class="exception-backtrace">Backtrace:<br /><pre>' . $optionalTrace . '</pre></span>';
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter