summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-04-22 16:52:48 -0700
committerBharat Mediratta <bharat@menalto.com>2011-04-22 16:52:48 -0700
commitc2a38087dcd77bf8c1e7a5ff81692502bdb3ff59 (patch)
treed2aae634e554de544e75712692c72cd281cfd177 /modules/gallery/helpers
parentfcbb4eef23e05261efd4e6a840f2abdef8055fc6 (diff)
A few more fixes for #1637:
- Update gallery_installer::install() to set the version to 48 and set the timezone - Rebuild installer.sql
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_installer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 2cb04356..83c5ed71 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -311,8 +311,9 @@ class gallery_installer {
module::set_var("gallery", "email_header_separator", serialize("\n"));
module::set_var("gallery", "show_user_profiles_to", "registered_users");
module::set_var("gallery", "extra_binary_paths", "/usr/local/bin:/opt/local/bin:/opt/bin");
+ module::set_var("gallery", "timezone", Kohana::config("locale.timezone"));
- module::set_version("gallery", 47);
+ module::set_version("gallery", 48);
}
static function upgrade($version) {
@@ -687,7 +688,7 @@ class gallery_installer {
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_var("gallery", "timezone", Kohana::config("locale.timezone"));
module::set_version("gallery", $version = 48);
}
}