mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-24383 adding missing context setup - credit goes to Paul Ortman
This commit is contained in:
parent
86b0f23224
commit
43d42a1acf
@ -58,6 +58,7 @@ if ($deluser !== 0) {
|
||||
$url->param('deluser', $deluser);
|
||||
}
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||
|
||||
if (!$course = $DB->get_record('course', array('id'=>$id))) {
|
||||
print_error('invalidcourseid');
|
||||
|
Loading…
x
Reference in New Issue
Block a user