aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 12:04:50 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 12:04:50 +0000
commit8c1ee672febd8f2579b8ee4b8c20e3b5b5a5970e (patch)
tree2485c1782394e45e421f7a04470acf43f4b19299 /views/default/messages
parentdbeecc199ff7ee329e4e547417ca034b2575b194 (diff)
downloadelgg-8c1ee672febd8f2579b8ee4b8c20e3b5b5a5970e.tar.gz
elgg-8c1ee672febd8f2579b8ee4b8c20e3b5b5a5970e.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Updated to show improved debug in debug mode. git-svn-id: https://code.elgg.org/elgg/trunk@829 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/messages')
-rw-r--r--views/default/messages/exceptions/exception.php21
1 files changed, 13 insertions, 8 deletions
diff --git a/views/default/messages/exceptions/exception.php b/views/default/messages/exceptions/exception.php
index 42223b225..8df557b48 100644
--- a/views/default/messages/exceptions/exception.php
+++ b/views/default/messages/exceptions/exception.php
@@ -22,13 +22,18 @@
<?php
echo nl2br($vars['object']->getMessage());
-
- if ($CONFIG->debug)
- {
- echo "<br /><pre>";
- print_r($vars['object']);
- echo "</pre>";
- }
+
?>
</span>
- </p> \ No newline at end of file
+ </p>
+
+ <?php if ($CONFIG->debug) { ?>
+ <hr />
+ <p class="messages-exception-detail">
+ <?php
+
+ echo nl2br(htmlentities(print_r($vars['object'], true)));
+
+ ?>
+ </p>
+ <?php } ?> \ No newline at end of file