mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-80974 enrol: Set category context for enrol form
This commit is contained in:
parent
f714dbee87
commit
faac67e2ea
@ -53,6 +53,7 @@ if (!$course->visible && !has_capability('moodle/course:viewhiddencourses', cont
|
||||
}
|
||||
|
||||
$PAGE->set_course($course);
|
||||
$PAGE->set_context($context->get_parent_context());
|
||||
$PAGE->set_pagelayout('incourse');
|
||||
$PAGE->set_url('/enrol/index.php', array('id'=>$course->id));
|
||||
$PAGE->set_secondary_navigation(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user