MDL-58803 calendar: Use fully qualified name for call to rrule_manager
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user