Merge branch 'MDL-51327-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2019-09-26 00:05:06 +02:00
+8 -1
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);