aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php2
-rw-r--r--views/default/messages/exceptions/exception.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 21dfacc0c..5e06ad4c0 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1657,6 +1657,8 @@
error_log("*** FATAL EXCEPTION *** : " . $exception);
+ ob_end_clean(); // Wipe any existing output buffer
+
$body = elgg_view("messages/exceptions/exception",array('object' => $exception));
echo page_draw(elgg_echo('exception:title'), $body);
diff --git a/views/default/messages/exceptions/exception.php b/views/default/messages/exceptions/exception.php
index b36125052..10f8628c1 100644
--- a/views/default/messages/exceptions/exception.php
+++ b/views/default/messages/exceptions/exception.php
@@ -39,6 +39,6 @@ END;
}
$title = $message;
-
- page_draw($title, elgg_view_layout("one_column", elgg_view_title($title) . $body));
+
+ echo elgg_view_layout("one_column", elgg_view_title($title) . $body);
?> \ No newline at end of file