From ef106e5b28d78f962b7e9f942903675bdb977a40 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Wed, 6 Oct 2010 03:48:32 +0000 Subject: [PATCH] "MDL-24210, added missing context to html editor" --- course/editsection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/editsection.php b/course/editsection.php index 1b562881e01..40d60de3482 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -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));