aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-01-15 13:40:57 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-01-15 13:40:57 -0800
commit4a3540fe36e66bee3d22795e83653140abb5deb9 (patch)
treeba2d3c65995b8bba0aaaf41545d2905e03b70969 /views/failsafe
parent68e4829ac0959d86c651e7ed6dc255c39694c8af (diff)
downloadelgg-4a3540fe36e66bee3d22795e83653140abb5deb9.tar.gz
elgg-4a3540fe36e66bee3d22795e83653140abb5deb9.tar.bz2
Fixes #4036. Hiding exceptions except for admin users.
Diffstat (limited to 'views/failsafe')
-rw-r--r--views/failsafe/messages/exceptions/exception.php26
1 files changed, 4 insertions, 22 deletions
diff --git a/views/failsafe/messages/exceptions/exception.php b/views/failsafe/messages/exceptions/exception.php
index c35d80c87..1873ca0d9 100644
--- a/views/failsafe/messages/exceptions/exception.php
+++ b/views/failsafe/messages/exceptions/exception.php
@@ -12,27 +12,9 @@
?>
<p class="elgg-messages-exception">
- <span title="<?php echo get_class($vars['object']); ?>">
- <?php
-
- echo nl2br($vars['object']->getMessage());
-
- ?>
+ <span title="Unrecoverable Error">
+ <?php echo elgg_echo('exception:contact_admin'); ?>
+ <br /><br />
+ Exception #<?php echo $vars['ts']; ?>.
</span>
</p>
-
-<?php
-
-if (elgg_get_config('debug')) {
-?>
-
-<p class="elgg-messages-exception">
- <?php
-
- echo nl2br(htmlentities(print_r($vars['object'], true), ENT_QUOTES, 'UTF-8'));
-
- ?>
-</p>
-<?php
-
-}