MDL-58906 calendar: Remove check for _refresh_events exists

This commit is contained in:
Ankit Agarwal 2017-07-26 12:51:27 +05:30
parent 7740e186e1
commit 9b5d887967

View File

@ -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);
}
}
}