Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e7afbb
)
MDL-59041 calendar: Make PRODID of exported ics attributed to Moodle
author
Jun Pataleta
<jun@moodle.com>
Wed, 24 May 2017 05:16:44 +0000
(13:16 +0800)
committer
Jun Pataleta
<jun@moodle.com>
Tue, 30 May 2017 11:33:01 +0000
(19:33 +0800)
calendar/export_execute.php
patch
|
blob
|
blame
|
history
diff --git
a/calendar/export_execute.php
b/calendar/export_execute.php
index
a711b76
..
944a6ba
100644
(file)
--- a/
calendar/export_execute.php
+++ b/
calendar/export_execute.php
@@
-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);