summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-23 17:58:55 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-23 17:58:55 -0700
commit68411cc903a1fedd5014763f55f3925c5a971b0f (patch)
treeb01e2a0458b8868749a9915a3ce472c90d8a063d /modules/gallery/helpers/gallery_event.php
parentcd5485ee845aed96e5ab2eaeb5f92c093ccf260a (diff)
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."
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index e0de2152..d45f5316 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -23,6 +23,7 @@ class gallery_event_Core {
* Initialization.
*/
static function gallery_ready() {
+ theme::load_themes(Input::instance()->server("PATH_INFO"));
user::load_user();
locales::set_request_locale();
}