Browse files

MDL-27842 calendar: remove usage of deprecated function calendar_prin…

  • Loading branch information...
1 parent 68b0cae commit 06314d7fafa94024eb178d18b45fd2a363597979 @ankitagarwal ankitagarwal committed Jun 29, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 calendar/delete.php
5 calendar/delete.php
@@ -121,7 +121,10 @@
// Print the event so that people can visually confirm they have the correct event
$event->time = calendar_format_event_time($event, time(), null, false);
-calendar_print_event($event, false);
+$renderer = $PAGE->get_renderer('core_calendar');
+echo $renderer->start_layout();
+echo $renderer->event($event);
+echo $renderer->complete_layout();
echo $OUTPUT->box_end();
echo $OUTPUT->footer();

0 comments on commit 06314d7

Please sign in to comment.