diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-20 10:15:22 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-20 10:15:22 +0000 |
commit | fb174c6eb95355f54048f08585e583345c146d5b (patch) | |
tree | bb3cc8fb4eafe295f58b9d530952d7bc8c100e35 | |
parent | 6af33c4fbb99561472ca5dd7a22b920fda73492c (diff) | |
download | elgg-fb174c6eb95355f54048f08585e583345c146d5b.tar.gz elgg-fb174c6eb95355f54048f08585e583345c146d5b.tar.bz2 |
Closes #487: Removed superfluous page_draw from exception view.
git-svn-id: https://code.elgg.org/elgg/trunk@2840 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/elgglib.php | 2 | ||||
-rw-r--r-- | 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 |