MDL-58906 calendar: Remove check for _refresh_events exists

This commit is contained in:
Ankit Agarwal
2017-07-26 12:59:07 +05:30
parent b56b5ee8d6
commit de99cab5e4
@@ -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);
}
}
}