mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
"MDL-21683, baseurl incorrectly defined, prevents deletion of repository instances, credits to Mark Johnson"
This commit is contained in:
parent
411caa63bb
commit
fe879bf308
@ -37,7 +37,9 @@ $contextid = optional_param('contextid', 0, PARAM_INT);
|
||||
$usercourseid = optional_param('usercourseid', SITEID, PARAM_INT); // Extra: used for user context only
|
||||
|
||||
$url = new moodle_url('/repository/manage_instances.php');
|
||||
$baseurl = $CFG->wwwroot . '/repository/manage_instances.php?contextid=' . $contextid . '&sesskey='. sesskey();
|
||||
|
||||
$baseurl = new moodle_url('/repository/manage_instances.php');
|
||||
$baseurl->param('sesskey', sesskey());
|
||||
|
||||
if ($edit){
|
||||
$url->param('edit', $edit);
|
||||
@ -57,6 +59,7 @@ if ($sure !== '') {
|
||||
}
|
||||
if ($contextid !== 0) {
|
||||
$url->param('contextid', $contextid);
|
||||
$baseurl->param('contextid', $contextid);
|
||||
}
|
||||
if ($usercourseid !== SITEID) {
|
||||
$url->param('usercourseid', $usercourseid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user