mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 08:00:37 +01:00
Merge branch 'MDL-43198-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
1abcc93e0b
@ -45,7 +45,8 @@ $PAGE->set_activity_record($folder);
|
||||
|
||||
$data = new stdClass();
|
||||
$data->id = $cm->id;
|
||||
$options = array('subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*');
|
||||
$maxbytes = get_user_max_upload_file_size($context, $CFG->maxbytes);
|
||||
$options = array('subdirs' => 1, 'maxbytes' => $maxbytes, 'maxfiles' => -1, 'accepted_types' => '*');
|
||||
file_prepare_standard_filemanager($data, 'files', $options, $context, 'mod_folder', 'content', 0);
|
||||
|
||||
$mform = new mod_folder_edit_form(null, array('data'=>$data, 'options'=>$options));
|
||||
|
Loading…
x
Reference in New Issue
Block a user