mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'wip-MDL-41317-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
29db803ac7
1 changed files with 1 additions and 2 deletions
|
@ -58,13 +58,12 @@ if ($deluser !== 0) {
|
||||||
$url->param('deluser', $deluser);
|
$url->param('deluser', $deluser);
|
||||||
}
|
}
|
||||||
$PAGE->set_url($url);
|
$PAGE->set_url($url);
|
||||||
$PAGE->set_context(context_system::instance());
|
|
||||||
|
|
||||||
if (!$course = $DB->get_record('course', array('id'=>$id))) {
|
if (!$course = $DB->get_record('course', array('id'=>$id))) {
|
||||||
print_error('invalidcourseid');
|
print_error('invalidcourseid');
|
||||||
}
|
}
|
||||||
|
|
||||||
require_login();
|
require_login($course);
|
||||||
|
|
||||||
$coursecontext = context_course::instance($id); // Course context
|
$coursecontext = context_course::instance($id); // Course context
|
||||||
$systemcontext = context_system::instance(); // SYSTEM context
|
$systemcontext = context_system::instance(); // SYSTEM context
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue