Merge branch 'MDL-51327-master' of git://github.com/mihailges/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-09-26 00:04:33 +02:00
commit dd52ef0b64

View File

@ -84,7 +84,14 @@ if ($deletesection) {
}
}
$editoroptions = array('context'=>$context ,'maxfiles' => EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>false, 'noclean'=>true);
$editoroptions = array(
'context' => $context,
'maxfiles' => EDITOR_UNLIMITED_FILES,
'maxbytes' => $CFG->maxbytes,
'trusttext' => false,
'noclean' => true,
'subdirs' => true
);
$courseformat = course_get_format($course);
$defaultsectionname = $courseformat->get_default_section_name($section);