mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-58906 calendar: Remove check for _refresh_events exists
This commit is contained in:
parent
7740e186e1
commit
9b5d887967
@ -65,11 +65,9 @@ class refresh_mod_calendar_events_task extends adhoc_task {
|
||||
// This plugin is not in the list, move on to the next one.
|
||||
continue;
|
||||
}
|
||||
// Check if the plugin implements *_refresh_events() and call it when it does.
|
||||
if (component_callback_exists('mod_' . $plugin->name, 'refresh_events')) {
|
||||
mtrace('Refreshing events for ' . $plugin->name);
|
||||
course_module_bulk_update_calendar_events($plugin->name, $courseid);
|
||||
}
|
||||
// Refresh events.
|
||||
mtrace('Refreshing events for ' . $plugin->name);
|
||||
course_module_bulk_update_calendar_events($plugin->name, $courseid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user