"MDL-24210, added missing context to html editor"
This commit is contained in:
@@ -39,7 +39,7 @@ require_login($course);
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_capability('moodle/course:update', $context);
|
||||
|
||||
$editoroptions = array('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);
|
||||
$section = file_prepare_standard_editor($section, 'summary', $editoroptions, $context, 'course', 'section', $section->id);
|
||||
$section->usedefaultname = (is_null($section->name));
|
||||
$mform = new editsection_form(null, array('course'=>$course, 'editoroptions'=>$editoroptions));
|
||||
|
||||
Reference in New Issue
Block a user