Skip to content

Commit

Permalink
replace deprecated get_array_of_activities()
Browse files Browse the repository at this point in the history
  • Loading branch information
my-curiosity committed Dec 5, 2023
1 parent 306ecd5 commit 9e60760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/external.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 9e60760

Please sign in to comment.