Merge branch 'MDL-58736-master' of git://github.com/cameron1729/moodle
[moodle.git] / calendar / lib.php
index 0994144..f75cc9e 100644 (file)
@@ -2972,7 +2972,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.