Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-32861 filemanager: respect course upload limit

  • Loading branch information...
commit 36a8da6e85815c25c5f6f97ba8c11a77ae9f1f36 1 parent 6791b08
Charles Fulton authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/form/filemanager.php
3  lib/form/filemanager.php
@@ -273,7 +273,8 @@ function form_filemanager_render($options) {
273 273
         $extra = '';
274 274
     }
275 275
 
276  
-    $maxsize = get_string('maxfilesize', 'moodle', display_size(get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes)));
  276
+    $options->maxbytes = get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes);
  277
+    $maxsize = get_string('maxfilesize', 'moodle', display_size($options->maxbytes));
277 278
     $loading = get_string('loading', 'repository');
278 279
     $html .= <<<FMHTML
279 280
 <div class="filemanager-loading mdl-align" id='filemanager-loading-{$client_id}'>

0 notes on commit 36a8da6

Please sign in to comment.
Something went wrong with that request. Please try again.