summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorAndy Lindeman <andy@highgroove.com>2011-04-22 18:15:17 -0400
committerAndy Lindeman <andy@highgroove.com>2011-04-22 18:15:17 -0400
commit6f916e49d5b431c2c1961a13d1a61fef8c02d628 (patch)
tree134b2907e041635915ecb4f7fa5418610b1dc653 /modules/gallery/helpers
parentb9a720e86bcaeab19aca81ee2af2b5c12fda1c55 (diff)
Allow timezone to be configurable
* Fixes #1637 * New advanced setting gallery/timezone * Default setting comes from PHP
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_installer.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 20de1fea..2cb04356 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -683,6 +683,13 @@ class gallery_installer {
module::set_var("gallery", "apple_touch_icon_url", "lib/images/apple-touch-icon.png");
module::set_version("gallery", $version = 47);
}
+
+ if ($version == 47) {
+ // Add configuration variable to set timezone. Defaults to the currently
+ // used timezone (from PHP configuration).
+ module::set_var("gallery", "timezone", Kohana::config('locale.timezone'));
+ module::set_version("gallery", $version = 48);
+ }
}
static function uninstall() {