Skip to content

Commit

Permalink
MDL-32861 filemanager: respect course upload limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed May 9, 2012
1 parent 6791b08 commit 36a8da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/form/filemanager.php
Expand Up @@ -273,7 +273,8 @@ function form_filemanager_render($options) {
$extra = '';
}

$maxsize = get_string('maxfilesize', 'moodle', display_size(get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes)));
$options->maxbytes = get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes);
$maxsize = get_string('maxfilesize', 'moodle', display_size($options->maxbytes));
$loading = get_string('loading', 'repository');
$html .= <<<FMHTML
<div class="filemanager-loading mdl-align" id='filemanager-loading-{$client_id}'>
Expand Down

0 comments on commit 36a8da6

Please sign in to comment.