mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-69493 cohort: remove escaping of return URL params.
This commit is contained in:
parent
a0fc902eb1
commit
1d4dbcde96
@ -154,7 +154,7 @@ foreach($cohorts['cohorts'] as $cohort) {
|
||||
$cohortmanager = has_capability('moodle/cohort:manage', $cohortcontext);
|
||||
$cohortcanassign = has_capability('moodle/cohort:assign', $cohortcontext);
|
||||
|
||||
$urlparams = array('id' => $cohort->id, 'returnurl' => $baseurl->out_as_local_url());
|
||||
$urlparams = array('id' => $cohort->id, 'returnurl' => $baseurl->out_as_local_url(false));
|
||||
$showhideurl = new moodle_url('/cohort/edit.php', $urlparams + array('sesskey' => sesskey()));
|
||||
if ($cohortmanager) {
|
||||
if ($cohort->visible) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user