Merge branch 'MDL-59041-master' of git://github.com/junpataleta/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 30 May 2017 13:05:13 +0000 (14:05 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 30 May 2017 13:05:13 +0000 (14:05 +0100)
calendar/export_execute.php

index a711b76..944a6ba 100644 (file)
@@ -184,6 +184,7 @@ $events = calendar_get_legacy_events($timestart, $timeend, $users, $groups, arra
 
 $ical = new iCalendar;
 $ical->add_property('method', 'PUBLISH');
+$ical->add_property('prodid', '-//Moodle Pty Ltd//NONSGML Moodle Version ' . $CFG->version . '//EN');
 foreach($events as $event) {
     if (!empty($event->modulename)) {
         $instances = get_fast_modinfo($event->courseid, $userid)->get_instances_of($event->modulename);