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","" );
?>
|