From 5950f492106a5927c3d3a6bffe8ed92a0fee8f9d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 2 May 2009 20:37:45 +0000 Subject: Rename core helper to gallery helper to indicate that it's more of an app-wide helper. 'core' doesn't make as much sense --- core/helpers/core.php | 30 ------------------------------ core/helpers/gallery.php | 30 ++++++++++++++++++++++++++++++ core/hooks/init_gallery.php | 2 +- 3 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 core/helpers/core.php create mode 100644 core/helpers/gallery.php (limited to 'core') diff --git a/core/helpers/core.php b/core/helpers/core.php deleted file mode 100644 index 5e5a12a7..00000000 --- a/core/helpers/core.php +++ /dev/null @@ -1,30 +0,0 @@ -admin) { - Router::$controller = "maintenance"; - Router::$controller_path = APPPATH . "controllers/maintenance.php"; - Router::$method = "index"; - } - } -} \ No newline at end of file diff --git a/core/helpers/gallery.php b/core/helpers/gallery.php new file mode 100644 index 00000000..74ecd672 --- /dev/null +++ b/core/helpers/gallery.php @@ -0,0 +1,30 @@ +admin) { + Router::$controller = "maintenance"; + Router::$controller_path = APPPATH . "controllers/maintenance.php"; + Router::$method = "index"; + } + } +} \ No newline at end of file diff --git a/core/hooks/init_gallery.php b/core/hooks/init_gallery.php index 536d8c64..58511edf 100644 --- a/core/hooks/init_gallery.php +++ b/core/hooks/init_gallery.php @@ -27,7 +27,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")); +Event::add("system.post_routing", array("gallery", "maintenance_mode")); // Override the cookie if we have a session id in the URL. // @todo This should probably be an event callback -- cgit v1.2.3