From 09ea2b194ca85ff56a749f138aae7a379358b1e6 Mon Sep 17 00:00:00 2001 From: cbadusch Date: Thu, 16 Jan 2025 17:38:00 +0100 Subject: [PATCH] Bugfix: GH-311 --- classes/node_completion.php | 2 +- classes/relation_update.php | 2 +- version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/node_completion.php b/classes/node_completion.php index fcb5005..985c528 100644 --- a/classes/node_completion.php +++ b/classes/node_completion.php @@ -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); diff --git a/classes/relation_update.php b/classes/relation_update.php index c93f275..877666f 100644 --- a/classes/relation_update.php +++ b/classes/relation_update.php @@ -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) { diff --git a/version.php b/version.php index 45ed1af..6c5427f 100755 --- a/version.php +++ b/version.php @@ -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 = [