From 3a78cf04ddfd2fdb5e3573053a30e7f800d51547 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 6 Jan 2006 05:14:27 +0000 Subject: [PATCH] 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. --- files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/index.php b/files/index.php index 136651a5acb..5b30b7e9629 100644 --- a/files/index.php +++ b/files/index.php @@ -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");