summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2012-11-29 17:41:07 +0000
committerNathan Kinkade <nath@nkinka.de>2012-11-29 17:41:07 +0000
commitfc7750c742d30c6ebd42a12c9d468f54e90d470d (patch)
treee971591cf8497246a05db3d9793e8fb610610a56 /modules/gallery/helpers/gallery_installer.php
parenta12ede0a39515b7b97aa8a3415f60d1c9752e3e6 (diff)
parentf457cd283cdfd9011d76ae96872e1f08bb219baf (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r--modules/gallery/helpers/gallery_installer.php11
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() {