diff --git a/classes/external.php b/classes/external.php index 34b95dc..3f7485c 100644 --- a/classes/external.php +++ b/classes/external.php @@ -932,7 +932,7 @@ public static function get_course_info($courseid) { // Get Activities in course. $activities = array(); - $modules = \get_array_of_activities($courseid); + $modules = \course_modinfo::get_array_of_activities(get_course($courseid)); foreach ($modules as $mo) { $section = \get_section_name($courseid, $mo->section); // Support section and activity multilang names. diff --git a/version.php b/version.php index a44c58f..c3ec7ff 100644 --- a/version.php +++ b/version.php @@ -21,7 +21,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023060601; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2023120500; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022041900; // Requires Moodle version 4.0 or higher. $plugin->component = 'tool_supporter'; // Full name of the plugin (used for diagnostics). $plugin->release = 'v4-r2';