summaryrefslogtreecommitdiff
path: root/core/hooks
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-05 00:32:33 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-05 00:32:33 +0000
commit7786bb09d32570d9be33727a3fe4fb460fcceeaf (patch)
tree69cbb683c9a3fc290474536c933a8179d33b51b4 /core/hooks
parent514e6658f6efc6409cfcf2fa85f0566d80217bad (diff)
Implement a Maintenance mode as per ticket: #15
Diffstat (limited to 'core/hooks')
-rw-r--r--core/hooks/init_gallery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hooks/init_gallery.php b/core/hooks/init_gallery.php
index 014c29ea..13c61256 100644
--- a/core/hooks/init_gallery.php
+++ b/core/hooks/init_gallery.php
@@ -22,6 +22,7 @@ Event::add("system.post_routing", array("theme", "load_themes"));
Event::add("system.ready", array("module", "load_modules"));
Event::add("system.post_routing", array("url", "parse_url"));
Event::add("system.shutdown", array("module", "shutdown"));
+Event::add("system.post_routing", array("core", "maintenance_mode"));
// Override the cookie if we have a session id in the URL.
// @todo This should probably be an event callback