Commit c0a6f70c authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

If an error has occurred after headers have been sent, echo a message and die.

These types of error will most like occur in smarty templates.

Not porting to master or 1.0_STABLE just yet. It might need to have different behaviour yet.
parent 475b7e13
......@@ -485,6 +485,11 @@ class MaharaException extends Exception {
exit;
}
if (headers_sent()) {
echo '<span style="color: red;">ERROR - something bad happened after headers have been sent. Check the error log for more information.</span>';
die();
}
$outputtitle = $this->get_string('title');
$outputmessage = trim($this->render_exception());
......
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