mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-35349_master' of git://github.com/markn86/moodle
This commit is contained in:
commit
440021c8a5
@ -35,10 +35,11 @@ if (!$course = $DB->get_record("course", array("id"=>$id))) {
|
||||
}
|
||||
|
||||
$context = context_course::instance($course->id, MUST_EXIST);
|
||||
$PAGE->set_context($context);
|
||||
|
||||
require_login();
|
||||
|
||||
if ($SESSION->wantsurl) {
|
||||
if (!empty($SESSION->wantsurl)) {
|
||||
$destination = $SESSION->wantsurl;
|
||||
unset($SESSION->wantsurl);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user