diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/messages/exceptions/exception.php | 47 |
1 files changed, 26 insertions, 21 deletions
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;
-?>
-
- <p class="messages-exception">
- <span title="<?php echo get_class($vars['object']); ?>">
- <?php
-
- echo autop($vars['object']->getMessage());
-
- ?>
- </span>
- </p> + global $CONFIG; + + $class = get_class($vars['object']); + $message = autop($vars['object']->getMessage()); - <?php if ($CONFIG->debug) { ?> - <hr /> - <p class="messages-exception-detail"> - <?php - - echo autop(htmlentities(print_r($vars['object'], true))); - - ?> + $body = <<< END + <p class="messages-exception"> + <span title="$class"> + $message + </span> </p> - <?php } ?>
\ No newline at end of file +END; + + if ($CONFIG->debug) + { + $details = autop(htmlentities(print_r($vars['object'], true))); + $body .= <<< END + <hr /> + <p class="messages-exception-detail"> + $details + </p> +END; + } + + $title = $message; + + page_draw($title, elgg_view_layout("one_column", elgg_view_title($title) . $body));
+?>
\ No newline at end of file |