Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-32861 filemanager: respect course upload limit

  • Loading branch information...
commit 36a8da6e85815c25c5f6f97ba8c11a77ae9f1f36 1 parent 6791b08
@mackensen mackensen authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/form/filemanager.php
View
3  lib/form/filemanager.php
@@ -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}'>
Please sign in to comment.
Something went wrong with that request. Please try again.