diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-12-05 17:56:31 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-05 17:56:31 -0800 |
| commit | 62693db037729f18db42d3959c73e470d1b106f1 (patch) | |
| tree | cb4eccc050afeb635b7308fef097dc6ac0912eb4 /modules/gallery/helpers/gallery_installer.php | |
| parent | c7b934bc6daf41af1b6e0b04b9b0e9cb22113db6 (diff) | |
| parent | fcbf824c05a7ba61391c0b5afc1589436490e7ba (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index 57a5ee9f..39859b36 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -432,6 +432,13 @@ class gallery_installer { module::clear_var("gallery", "blocks_site.sidebar"); module::set_version("gallery", $version = 19); } + + // Set a default for the number of simultaneous uploads + // Version 20 was reverted in 57adefc5baa7a2b0dfcd3e736e80c2fa86d3bfa2, so skip it. + if ($version == 19 || $version == 20) { + module::set_var("gallery", "simultaneous_upload_limit", 5); + module::set_version("gallery", $version = 21); + } } static function uninstall() { |
