Skip to content

Commit

Permalink
Merge pull request #117 from cmcramer/add-ICS-Feed-ID-to-feedevent
Browse files Browse the repository at this point in the history
Pass ICS Feed ID to event list
  • Loading branch information
Aaron Carlino authored Oct 26, 2016
2 parents 06b542d + e245e2b commit 7fda123
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ public function getFeedEvents($start_date, $end_date) {
foreach ( $events as $event ) {
// translate iCal schema into CalendarAnnouncement schema (datetime + title/content)
$feedevent = new CalendarAnnouncement;
//pass ICS feed ID to event list
$feedevent->ID = 'ICS_'.$feed->ID;
$feedevent->Title = $event['SUMMARY'];
if ( isset($event['DESCRIPTION']) ) {
$feedevent->Content = $event['DESCRIPTION'];
Expand Down

0 comments on commit 7fda123

Please sign in to comment.