summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-13 12:33:00 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-13 12:33:00 -0700
commit2c711d8908137b6ff25941f06fe0a3f9ac02596d (patch)
treef56d813f5ee99e8d401d39c52ec877f1a27998ef /modules/gallery/helpers/gallery_event.php
parent53393a144609c0d8402b14606f52422bf3f28daf (diff)
refactor locale related functionality out of the user module and into the gallery module.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 290d7d12..106aa202 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -19,6 +19,14 @@
*/
class gallery_event_Core {
+ /**
+ * Initialization.
+ */
+ static function gallery_ready() {
+ user::load_user();
+ locales::set_request_locale();
+ }
+
static function group_created($group) {
access::add_group($group);
}