summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-04-22 16:44:12 -0700
committerBharat Mediratta <bharat@menalto.com>2011-04-22 16:44:12 -0700
commitfcbb4eef23e05261efd4e6a840f2abdef8055fc6 (patch)
treedc0e96e17cf4755c532cb7d20c5b2fa8b109e7a2 /modules/gallery/helpers
parentf2009fa21e6dc0eea970ba354169a6e0f52c0f2a (diff)
parent6f916e49d5b431c2c1961a13d1a61fef8c02d628 (diff)
Merge branch 'time-zone-improvements' of https://github.com/alindeman/gallery3 into alindeman-time-zone-improvements
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() {