Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36738 calendar: Ical subscription list should display type of event

  • Loading branch information...
commit 5b6e74c85fd0b5062c2d37f23e62b850051020c4 1 parent c33a96f
@ankitagarwal ankitagarwal authored danpoltawski committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  calendar/renderer.php
View
3  calendar/renderer.php
@@ -736,6 +736,7 @@ public function subscription_details($courseid, $subscriptions, $importresults =
$table->head = array(
get_string('colcalendar', 'calendar'),
get_string('collastupdated', 'calendar'),
+ get_string('eventkind', 'calendar'),
get_string('colpoll', 'calendar'),
get_string('colactions', 'calendar')
);
@@ -762,10 +763,12 @@ public function subscription_details($courseid, $subscriptions, $importresults =
$cell = new html_table_cell($this->subscription_action_form($sub, $courseid));
$cell->colspan = 2;
+ $type = $sub->eventtype . 'events';
$table->data[] = new html_table_row(array(
new html_table_cell($label),
new html_table_cell($lastupdated),
+ new html_table_cell(get_string($type, 'calendar')),
$cell
));
}
Please sign in to comment.
Something went wrong with that request. Please try again.