mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-59041 calendar: Make PRODID of exported ics attributed to Moodle
This commit is contained in:
parent
9e7afbbc6c
commit
5e0af1da71
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user