]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4036. Forgot to add a new view.
authorBrett Profitt <brett.profitt@gmail.com>
Mon, 16 Jan 2012 18:32:27 +0000 (10:32 -0800)
committerBrett Profitt <brett.profitt@gmail.com>
Mon, 16 Jan 2012 18:32:27 +0000 (10:32 -0800)
views/failsafe/messages/exceptions/admin_exception.php [new file with mode: 0644]

diff --git a/views/failsafe/messages/exceptions/admin_exception.php b/views/failsafe/messages/exceptions/admin_exception.php
new file mode 100644 (file)
index 0000000..57665d9
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Elgg exception (failsafe mode)
+ * Displays a single exception
+ *
+ * @package Elgg
+ * @subpackage Core
+ *
+ * @uses $vars['object'] An exception
+ */
+
+?>
+
+<p class="elgg-messages-exception">
+       <span title="<?php echo get_class($vars['object']); ?>">
+       <?php
+
+               echo nl2br($vars['object']->getMessage());
+
+       ?>
+       </span>
+</p>
+
+<p class="elgg-messages-exception">
+       <?php
+
+               echo nl2br(htmlentities(print_r($vars['object'], true), ENT_QUOTES, 'UTF-8'));
+
+       ?>
+</p>
\ No newline at end of file