Skip to content

Commit

Permalink
Bugfix: GH-311
Browse files Browse the repository at this point in the history
  • Loading branch information
cbadusch committed Jan 16, 2025
1 parent 2a6add2 commit 09ea2b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/node_completion.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function enrol_child_courses($event) {
$firstenrollededit = true;
}
$selectedrole = get_config('local_adele', 'enroll_as_setting');
$context = context_course::instance($subscribecourse);
$context = \context_course::instance($subscribecourse);
$isenrolled = is_enrolled($context, $event->other['userpath']->user_id);
if (!$isenrolled) {
$enrol->enrol_user($instance, $event->other['userpath']->user_id, $selectedrole);
Expand Down
2 changes: 1 addition & 1 deletion classes/relation_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ public static function subscribe_user_starting_node($userpath) {
}

$instance = reset($instances); // Use the first manual enrolment plugin in the course.
$context = context_course::instance($courseid);
$context = \context_course::instance($courseid);

$isenrolled = is_enrolled($context, $userpath->user_id);
if (!$isenrolled) {
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

$plugin->component = 'local_adele';
$plugin->release = '0.2.4';
$plugin->version = 2025011600;
$plugin->version = 2025011601;
$plugin->requires = 2022112800;
$plugin->maturity = MATURITY_ALPHA;
$plugin->dependencies = [
Expand Down

0 comments on commit 09ea2b1

Please sign in to comment.