mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-80974-main' of https://github.com/sh-csg/moodle
This commit is contained in:
commit
762aa5ada8
@ -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