Merge branch 'MDL-76985-master' of https://github.com/sh-csg/moodle

This commit is contained in:
Jun Pataleta
2023-02-01 14:12:05 +08:00
+5 -1
View File
@@ -194,7 +194,11 @@
if ($course->id == SITEID) {
redirect($CFG->wwwroot . '/?redirect=0');
} else {
redirect(course_get_url($course));
if ($format->get_course_display() == COURSE_DISPLAY_MULTIPAGE) {
redirect(course_get_url($course));
} else {
redirect(course_get_url($course, $destsection));
}
}
} else {
echo $OUTPUT->notification('An error occurred while moving a section');