Index: moodle/mod/lamslesson/mod_form.php =================================================================== diff -u -r838dc1f2f02215e3ee88c3030fb2b911db52a957 -r273e0709e68cb41df7fe41f1be07add6f25f69c6 --- moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision 838dc1f2f02215e3ee88c3030fb2b911db52a957) +++ moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision 273e0709e68cb41df7fe41f1be07add6f25f69c6) @@ -63,15 +63,18 @@ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client'); $mform->addHelpButton('name', 'lamslessonname', 'lamslesson'); - /// Adding the standard "intro" and "introformat" fields - $this->add_intro_editor(); + // Adding the standard "intro" and "introformat" fields + $this->standard_intro_elements(); //------------------------------------------------------------------------------- /// Adding the rest of lamslesson settings, spreeading all them into this fieldset /// or adding more fieldsets ('header' elements) if needed for better logic // Set needed vars - $context = get_context_instance(CONTEXT_COURSE, $COURSE->id); + //$context = get_context_instance(CONTEXT_COURSE, $COURSE->id); + // using context_course now instead + $context = context_course::instance($COURSE->id); + $canmanage = has_capability('mod/lamslesson:manage', $context); //-- Open Author & Preview URL buttons