From c0eb72036e707f9a608e8c4c6c35364d7ee561a2 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 6 Aug 2008 11:35:39 +0000 Subject: Tidied up exception git-svn-id: https://code.elgg.org/elgg/trunk@1732 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/messages/exceptions/exception.php | 47 ++++++++++++++----------- 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'views/default') diff --git a/views/default/messages/exceptions/exception.php b/views/default/messages/exceptions/exception.php index f56927123..de178eda7 100644 --- a/views/default/messages/exceptions/exception.php +++ b/views/default/messages/exceptions/exception.php @@ -14,26 +14,31 @@ * @uses $vars['object'] An exception */ - global $CONFIG; -?> - -

- - getMessage()); - - ?> - -

+ global $CONFIG; + + $class = get_class($vars['object']); + $message = autop($vars['object']->getMessage()); - debug) { ?> -
-

- + $body = <<< END +

+ + $message +

- \ No newline at end of file +END; + + if ($CONFIG->debug) + { + $details = autop(htmlentities(print_r($vars['object'], true))); + $body .= <<< END +
+

+ $details +

+END; + } + + $title = $message; + + page_draw($title, elgg_view_layout("one_column", elgg_view_title($title) . $body)); +?> \ No newline at end of file -- cgit v1.2.3