diff options
author | chalbertgit <christopherhalbert@yahoo.com> | 2012-11-13 13:17:45 -0500 |
---|---|---|
committer | chalbertgit <christopherhalbert@yahoo.com> | 2012-11-13 13:17:45 -0500 |
commit | ce9199a955c6f3446de6892f5dfed0035d326123 (patch) | |
tree | 7227a9122a6a5382cbd9c7bb57c933cbdcb887a2 | |
parent | b50768142745dc4bfd8a9460c7490ddd00e3b06a (diff) |
[#1907] Added code needed for the case when a user upgrades.
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 11 | ||||
-rw-r--r-- | modules/gallery/module.info | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index e556b49a..99bc3726 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -312,8 +312,9 @@ class gallery_installer { 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", null); + module::set_var("gallery", "lock_timeout", 1); - module::set_version("gallery", 50); + module::set_version("gallery", 51); } static function upgrade($version) { @@ -713,6 +714,14 @@ class gallery_installer { } module::set_version("gallery", $version = 50); } + + if ($version == 50) { + // In v50, a lock_timeout variable was added so that administrators could edit the time out + // from 1 second to a higher variable if their system runs concurrent parallel uploads for + // instance. + module::set_var("gallery", "lock_timeout", 1); + module::set_version("gallery", $version = 51); + } } static function uninstall() { diff --git a/modules/gallery/module.info b/modules/gallery/module.info index a905a241..424c0c2d 100644 --- a/modules/gallery/module.info +++ b/modules/gallery/module.info @@ -1,6 +1,6 @@ name = "Gallery 3" description = "Gallery core application" -version = 50 +version = 51 author_name = "Gallery Team" author_url = "http://codex.gallery2.org/Gallery:Team" info_url = "http://codex.gallery2.org/Gallery3:Modules:gallery" |