summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Form_Uploadify.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-02 12:09:34 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-02 12:09:34 -0800
commit1ab8ac305bf53bae8c05b917b06f035b9b700937 (patch)
tree9f483a5ced3cc5e8090b618d09d2b17d5e13ded4 /modules/gallery/libraries/Form_Uploadify.php
parent714c97763ad9af0bbc5fab97144246b3137d5350 (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.php7
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;
}