summaryrefslogtreecommitdiff
path: root/modules/gallery/views/kohana_error_page.php
diff options
context:
space:
mode:
authorMarc Poulhiès <github@kataplop.net>2009-06-11 09:06:31 +0200
committerMarc Poulhiès <github@kataplop.net>2009-06-11 09:06:31 +0200
commit7815315dbf98f87c4e115a09cb116ac0bc4ca62e (patch)
tree700d62e41c666d282d3a7eb2287e187d841e45c0 /modules/gallery/views/kohana_error_page.php
parent315969e24e3ce4cbf06e5160e4738c083b2338be (diff)
parent68fd196d66e2d21f571ff3b5a673f18cd129abf9 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/views/kohana_error_page.php')
-rw-r--r--modules/gallery/views/kohana_error_page.php2
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!") ?>