Skip to content

Commit

Permalink
Merge branch 'MDL-74964-master' of https://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jul 27, 2022
2 parents 202ce91 + 8add66b commit dc5d5e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enrol/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
$PAGE->set_course($course);
$PAGE->set_pagelayout('incourse');
$PAGE->set_url('/enrol/index.php', array('id'=>$course->id));
$PAGE->set_secondary_navigation(false);
$PAGE->add_body_class('limitedwidth');

// do not allow enrols when in login-as session
if (\core\session\manager::is_loggedinas() and $USER->loginascontext->contextlevel == CONTEXT_COURSE) {
Expand Down

0 comments on commit dc5d5e3

Please sign in to comment.