diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-11 14:42:24 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-11 14:42:24 +0000 |
commit | fc6fcf1a089c08af1b5c19658abdc5c954bc554d (patch) | |
tree | b5d90fcab22ba9cda07d3a0abcc658bcdfc5c8a4 /views/odd/messages/exceptions | |
parent | b6f77aa9b7c4083167cb954196d737c1c45436d2 (diff) | |
download | elgg-fc6fcf1a089c08af1b5c19658abdc5c954bc554d.tar.gz elgg-fc6fcf1a089c08af1b5c19658abdc5c954bc554d.tar.bz2 |
Exceptions in OpenDD export now appear as comments for debugging.
git-svn-id: https://code.elgg.org/elgg/trunk@1402 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/odd/messages/exceptions')
-rw-r--r-- | views/odd/messages/exceptions/exception.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/views/odd/messages/exceptions/exception.php b/views/odd/messages/exceptions/exception.php new file mode 100644 index 000000000..86b5bba48 --- /dev/null +++ b/views/odd/messages/exceptions/exception.php @@ -0,0 +1,31 @@ +<?php
+
+ /**
+ * Elgg exception
+ * Displays a single exception
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['object'] An exception
+ */
+ + global $CONFIG;
+?>
+<!--
+<?php echo get_class($vars['object']); ?>: <?php echo nl2br($vars['object']->getMessage()); ?> + + +<?php if ($CONFIG->debug) { ?> +<?php + + echo print_r($vars['object'], true); + + ?> +<?php } ?> + +-->
\ No newline at end of file |