diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-10 01:21:57 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-10 01:21:57 -0700 |
commit | f20bf46868485ba17308fe8e03edcb79077f7e10 (patch) | |
tree | 885b6f2b13f3900a4c6d342e582f67157f832935 | |
parent | f9d492ba2d7a1d521ba4ba228543682e6a1d2b7f (diff) |
Consider the CLI sapi the equivalent of an admin
-rw-r--r-- | modules/gallery/views/kohana_error_page.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/views/kohana_error_page.php b/modules/gallery/views/kohana_error_page.php index d9bf9698..6bf48549 100644 --- a/modules/gallery/views/kohana_error_page.php +++ b/modules/gallery/views/kohana_error_page.php @@ -59,7 +59,7 @@ </head> <body> <? try { $user = user::active(); } catch (Exception $e) { } ?> - <? $admin = isset($user) && $user->admin ?> + <? $admin = php_sapi_name() == "cli" || isset($user) && $user->admin ?> <div class="big_box" id="framework_error"> <h1> <?= t("Dang... Something went wrong!") ?> |