Fixed Bug #4533 - Max upload size at course level ignored.
Modified around line 835 $upload_max_filesize = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes); Added second parameter to function get_max_upload_file_size, so that it takes max size for a course into consideration.
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@
|
||||
// um will take care of error reporting.
|
||||
displaydir($wdir);
|
||||
} else {
|
||||
$upload_max_filesize = get_max_upload_file_size($CFG->maxbytes);
|
||||
$upload_max_filesize = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
|
||||
$filesize = display_size($upload_max_filesize);
|
||||
|
||||
$struploadafile = get_string("uploadafile");
|
||||
|
||||
Reference in New Issue
Block a user