From 1db81444e0376445fcd496594e93635fee68844f Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 6 Jul 2005 12:14:39 +0000 Subject: [PATCH] Upload limit now takes account of course upload limit. Bug #3247 --- mod/workshop/mod.html | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/mod/workshop/mod.html b/mod/workshop/mod.html index b23c7a043f6..67cf695d66e 100644 --- a/mod/workshop/mod.html +++ b/mod/workshop/mod.html @@ -351,24 +351,8 @@ : maxbytes == $sizebytes) { - $sizeinlist = true; - } - } - $filesize[$maxsize] = display_size($maxsize); - if (!$sizeinlist) { - $form->maxbytes = get_real_size("500K"); - } - ksort($filesize, SORT_NUMERIC); - choose_from_menu($filesize, "maxbytes", "$form->maxbytes", ""); + $choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes); + choose_from_menu($choices, "maxbytes", "$form->maxbytes","" ); ?>