MDL-58803 calendar: Use fully qualified name for call to rrule_manager

This commit is contained in:
Jun Pataleta
2017-05-04 08:58:11 +08:00
parent 932bc91cb4
commit c9d775fc92
+1 -1
View File
@@ -3067,7 +3067,7 @@ function calendar_add_icalendar_event($event, $courseid, $subscriptionid, $timez
if (!empty($event->properties['RRULE'])) {
// Repeating events.
date_default_timezone_set($tz); // Change time zone to parse all events.
$rrule = new rrule_manager($event->properties['RRULE'][0]->value);
$rrule = new \core_calendar\rrule_manager($event->properties['RRULE'][0]->value);
$rrule->parse_rrule();
$rrule->create_events($createdevent);
\core_date::set_default_server_timezone(); // Change time zone back to what it was.