]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed calculation of max upload size
authormoodler <moodler>
Sun, 1 Feb 2004 05:51:20 +0000 (05:51 +0000)
committermoodler <moodler>
Sun, 1 Feb 2004 05:51:20 +0000 (05:51 +0000)
mod/resource/coursefiles.php

index c8ef7f5caa588356738f70609def9bedfb2ea4bc..c443bbbfb48ab286574ed3b711755d3a8c862a1d 100644 (file)
                 displaydir($wdir);
                     
             } else {
-                $upload_max_filesize = get_max_upload_file_size();
+                $upload_max_filesize = get_max_upload_file_size($CFG->maxbytes);
                 $filesize = display_size($upload_max_filesize);
 
                 $struploadafile = get_string("uploadafile");