From efe8c3c6638df8fe439b0c2a05508d74b6ab9e4e Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 15 Aug 2019 15:36:39 +0800 Subject: [PATCH] MDL-51327 core_course: Allow subdirs in edit section form --- course/editsection.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/course/editsection.php b/course/editsection.php index b04440bf8fe..04ece14bf12 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -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); -- 2.43.0