diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-09 12:04:50 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-09 12:04:50 +0000 |
commit | 8c1ee672febd8f2579b8ee4b8c20e3b5b5a5970e (patch) | |
tree | 2485c1782394e45e421f7a04470acf43f4b19299 /views/default/messages/exceptions/exception.php | |
parent | dbeecc199ff7ee329e4e547417ca034b2575b194 (diff) | |
download | elgg-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/exceptions/exception.php')
-rw-r--r-- | views/default/messages/exceptions/exception.php | 21 |
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 |