From 1ab8ac305bf53bae8c05b917b06f035b9b700937 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 2 Dec 2009 12:09:34 -0800 Subject: 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. --- modules/gallery/libraries/Form_Uploadify.php | 7 +++++++ modules/gallery/views/form_uploadify.html.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'modules') 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; } diff --git a/modules/gallery/views/form_uploadify.html.php b/modules/gallery/views/form_uploadify.html.php index 5e99c8d5..c18bc8ca 100644 --- a/modules/gallery/views/form_uploadify.html.php +++ b/modules/gallery/views/form_uploadify.html.php @@ -24,7 +24,7 @@ fileDesc: for_js() ?>, cancelImg: "", buttonText: for_js() ?>, - simUploadLimit: 10, + simUploadLimit: , wmode: "transparent", hideButton: true, /* should be true */ auto: true, -- cgit v1.2.3