mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
Merge branch 'MDL-76985-MOODLE_401_STABLE' of https://github.com/sh-csg/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
e3dd47671c
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user