From fb174c6eb95355f54048f08585e583345c146d5b Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 20 Feb 2009 10:15:22 +0000 Subject: Closes #487: Removed superfluous page_draw from exception view. git-svn-id: https://code.elgg.org/elgg/trunk@2840 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 ++ views/default/messages/exceptions/exception.php | 4 ++-- 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 -- cgit v1.2.3