diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-02 12:09:34 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-02 12:09:34 -0800 |
commit | 1ab8ac305bf53bae8c05b917b06f035b9b700937 (patch) | |
tree | 9f483a5ced3cc5e8090b618d09d2b17d5e13ded4 /modules/gallery/libraries/Form_Uploadify.php | |
parent | 714c97763ad9af0bbc5fab97144246b3137d5350 (diff) |
Allow users to override the number of simulatenous uploads. This setting won't appear until after they have attempted to upload at least once and have issues.
Diffstat (limited to 'modules/gallery/libraries/Form_Uploadify.php')
-rw-r--r-- | modules/gallery/libraries/Form_Uploadify.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Form_Uploadify.php b/modules/gallery/libraries/Form_Uploadify.php index b1d9fa74..52fa45f0 100644 --- a/modules/gallery/libraries/Form_Uploadify.php +++ b/modules/gallery/libraries/Form_Uploadify.php @@ -45,6 +45,13 @@ class Form_Uploadify_Core extends Form_Input { $v = new View("form_uploadify.html"); $v->album = $this->data["album"]; $v->script_data = $this->data["script_data"]; + $upload_limit = module::get_var("gallery", "upload_limit"); + if (empty($upload_limit)) { + $upload_limit = 5; + module::set_var("gallery", "upload_limit", 5); + } + + $v->upload_limit = $upload_limit; return $v; } |