diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-11-15 01:40:53 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-11-15 01:40:53 -0800 |
commit | bcdf2b56c62c63644cc6fa6796def559d7b18be8 (patch) | |
tree | c192f93f286fb0ca09b15a70f99b2b35833dc520 /modules/gallery/helpers | |
parent | 1ac8c883ab0db973659228f351d5b608200e6a56 (diff) | |
parent | ce9199a955c6f3446de6892f5dfed0035d326123 (diff) |
Merge pull request #75 from chalbertgit/master
Ticket #1907, Add lock timeout as an editable variable in admin=>settings=>advanced
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 11 |
1 files changed, 10 insertions, 1 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() { |