summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery.php
diff options
context:
space:
mode:
authormamouneyya <mamoun.diraneyya@gmail.com>2010-09-20 04:30:34 +0300
committermamouneyya <mamoun.diraneyya@gmail.com>2010-09-20 04:30:34 +0300
commitce80259d6939e43aaea34eba7bea4b2a602a5019 (patch)
tree7ca81d874b62c5a2c0244657aa903d565a7e6b04 /modules/gallery/helpers/gallery.php
parentba950bec0c84a1467aa2545ca815d5af7b0b002b (diff)
parent93d1a8103e757a87fb006f2389f0ee24497367a7 (diff)
Merge remote branch 'gallery3/master'
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
-rw-r--r--modules/gallery/helpers/gallery.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index 9430231c..ca8c92c9 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -44,7 +44,8 @@ class gallery_Core {
if (Router::$controller != "login" &&
Router::$controller != "combined" &&
identity::active_user()->guest &&
- !access::user_can(identity::guest(), "view", item::root())) {
+ !access::user_can(identity::guest(), "view", item::root()) &&
+ php_sapi_name() != "cli") {
if (Router::$controller == "admin") {
// At this point we're in the admin theme and it doesn't have a themed login page, so
// we can't just swap in the login controller and have it work. So redirect back to the