Skip to content

Commit

Permalink
MDL-80974 enrol: Set category context for enrol form
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Apr 4, 2024
1 parent 5efbd6e commit 52c7c2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions enrol/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
}

$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);
Expand Down

0 comments on commit 52c7c2d

Please sign in to comment.