mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-42619 block_community: delete course redirect bug fix
This commit is contained in:
parent
d2941e8808
commit
12ceaa5514
@ -130,7 +130,7 @@ $communityid = optional_param('communityid', '', PARAM_INT);
|
||||
if ($remove != -1 and !empty($communityid) and confirm_sesskey()) {
|
||||
$communitymanager->block_community_remove_course($communityid, $USER->id);
|
||||
echo $OUTPUT->header();
|
||||
echo $renderer->remove_success(new moodle_url(get_referer(false)));
|
||||
echo $renderer->remove_success(new moodle_url('/course/view.php', array('id' => $courseid)));
|
||||
echo $OUTPUT->footer();
|
||||
die();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user