MDL-51327 core_course: Allow subdirs in edit section form

This commit is contained in:
Mihail Geshoski
2019-09-24 09:08:54 +08:00
parent eb77088991
commit f4397e3098
+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);