MDL-71663: fix editor in classic

This commit is contained in:
Ferran Recio
2021-10-21 19:40:17 +02:00
committed by Eloy Lafuente (stronk7)
parent ab588eadbb
commit db8e1d9423
+3 -3
View File
@@ -268,6 +268,9 @@
// inclusion we pass parameters around this way..
$displaysection = $section;
// Include course AJAX
include_course_ajax($course, $modnamesused);
// Include the actual course format.
require($CFG->dirroot .'/course/format/'. $course->format .'/format.php');
// Content wrapper end.
@@ -279,9 +282,6 @@
// anything after that point.
course_view(context_course::instance($course->id), $section);
// Include course AJAX
include_course_ajax($course, $modnamesused);
// If available, include the JS to prepare the download course content modal.
if ($candownloadcourse) {
$PAGE->requires->js_call_amd('core_course/downloadcontent', 'init');