summaryrefslogtreecommitdiff
path: root/modules/gallery/hooks
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-02 00:50:02 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-02 00:50:02 -0700
commit2a86446249c4782287e1e6e472f422b851c2fb47 (patch)
treef17a26d911ba6c9de3316f40541718c0149498a0 /modules/gallery/hooks
parent23b566e5921d5b8bd5a957ecd2d601e556f658a0 (diff)
Handle the case of a completely private Gallery separately and just
put up a login page, very similar to the way that the maintenance mode login page works. Fixes ticket #1056.
Diffstat (limited to 'modules/gallery/hooks')
-rw-r--r--modules/gallery/hooks/init_gallery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/hooks/init_gallery.php b/modules/gallery/hooks/init_gallery.php
index 64e44b56..10a74733 100644
--- a/modules/gallery/hooks/init_gallery.php
+++ b/modules/gallery/hooks/init_gallery.php
@@ -38,6 +38,7 @@ Event::add("system.ready", array("module", "load_modules"));
Event::add("system.ready", array("gallery", "ready"));
Event::add("system.post_routing", array("url", "parse_url"));
Event::add("system.post_routing", array("gallery", "maintenance_mode"));
+Event::add("system.post_routing", array("gallery", "private_gallery"));
Event::add("system.shutdown", array("gallery", "shutdown"));
// @todo once we convert to Kohana 2.4 this doesn't have to be here