Rename the "upload_limit" variable to "simultaneous_upload_limit" for

clarity, since it only limits concurrency not the number of actual uploads.

Move the default-setting code into the upgrader so that we avoid
creating the variable as a side-effect of the view (personal
preference to avoid side-effect code since it's led to problems in the
past).
This commit is contained in:
Bharat Mediratta
2009-12-02 19:08:13 -08:00
parent 1ab8ac305b
commit c9e6869c68
4 changed files with 10 additions and 10 deletions
@@ -24,7 +24,7 @@
fileDesc: <?= t("Photos and movies")->for_js() ?>,
cancelImg: "<?= url::file("lib/uploadify/cancel.png") ?>",
buttonText: <?= t("Select photos...")->for_js() ?>,
simUploadLimit: <?= $upload_limit ?>,
simUploadLimit: <?= $simultaneous_upload_limit ?>,
wmode: "transparent",
hideButton: true, /* should be true */
auto: true,