MDL-42619 block_community: delete course redirect bug fix

This commit is contained in:
Sam Hemelryk 2013-10-31 09:18:08 +08:00
parent d2941e8808
commit 12ceaa5514

View File

@ -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();
}