diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-29 17:40:23 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-29 17:40:23 -0700 |
commit | 34da188e81c39b472081417b96e75b1102e01707 (patch) | |
tree | 2a6ffecf505be01fdf109591823d6b8a3cfce8c4 /modules | |
parent | b0cb3c74025dd601dcf0ffbc33493c03b7bd1824 (diff) |
Revert test code inserted in 88a3d43ba9b9377ba6bbe21a4547220ae3a37276
which showed stack traces to non-admins.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/views/kohana_error_page.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/gallery/views/kohana_error_page.php b/modules/gallery/views/kohana_error_page.php index a091bca3..d9bf9698 100644 --- a/modules/gallery/views/kohana_error_page.php +++ b/modules/gallery/views/kohana_error_page.php @@ -58,9 +58,8 @@ <title><?= t("Something went wrong!") ?></title> </head> <body> -<? // try { $user = user::active(); } catch (Exception $e) { } ?> -<? // $admin = isset($user) && $user->admin ?> -<? $admin = 1; ?> + <? try { $user = user::active(); } catch (Exception $e) { } ?> + <? $admin = isset($user) && $user->admin ?> <div class="big_box" id="framework_error"> <h1> <?= t("Dang... Something went wrong!") ?> |