From 68411cc903a1fedd5014763f55f3925c5a971b0f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 23 Oct 2009 17:58:55 -0700 Subject: Allow themes to override event handlers. In gallery::ready() grab the server PATH_INFO and pass it to the theme::load_themes method. If it starts with \"/admin\", then set the theme to the active admin theme, otherwise set it to the active site theme. Fixes ticket #841: Themes cannot overload event classes." --- modules/gallery/hooks/init_gallery.php | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/gallery/hooks') diff --git a/modules/gallery/hooks/init_gallery.php b/modules/gallery/hooks/init_gallery.php index da7eeb0f..b2d9c4de 100644 --- a/modules/gallery/hooks/init_gallery.php +++ b/modules/gallery/hooks/init_gallery.php @@ -27,7 +27,6 @@ if (!file_exists(VARPATH . "database.php")) { Event::add("system.ready", array("I18n", "instance")); Event::add("system.ready", array("module", "load_modules")); Event::add("system.ready", array("gallery", "ready")); -Event::add("system.post_routing", array("theme", "load_themes")); Event::add("system.post_routing", array("url", "parse_url")); Event::add("system.post_routing", array("gallery", "maintenance_mode")); Event::add("system.shutdown", array("gallery", "shutdown")); -- cgit v1.2.3