Commit 7c817b7e authored by Côme Chilliet's avatar Côme Chilliet Committed by Mortier Benoit
Browse files

Put back one more line in PHP error traces

parent 203477d3
...@@ -31,7 +31,7 @@ function html_trace($errstr = "") ...@@ -31,7 +31,7 @@ function html_trace($errstr = "")
if (!function_exists('debug_backtrace')) { if (!function_exists('debug_backtrace')) {
return array ("", ""); return array ("", "");
} }
$trace = array_slice(debug_backtrace(), 2); $trace = array_slice(debug_backtrace(), 1);
$return_html = "<table width=\"100%\" style='background-color:#402005;color:white;border:2px solid red;border-spacing:0;border-collapse:collapse;'><tr><td colspan=3><h1 style='color:white'>"._("PHP error")." \"$errstr\"</h1></td></tr>"; $return_html = "<table width=\"100%\" style='background-color:#402005;color:white;border:2px solid red;border-spacing:0;border-collapse:collapse;'><tr><td colspan=3><h1 style='color:white'>"._("PHP error")." \"$errstr\"</h1></td></tr>";
$return_mailto = rawurlencode("=== Trace ==="); $return_mailto = rawurlencode("=== Trace ===");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment