Permalink
Browse files

MDL-27842 calendar: Remove the use of deprecated function calendar_pr…

…int_event from delete.php
  • Loading branch information...
1 parent 4776262 commit 05ddbc3143430e9c166036f52572632a1a71c776 @ankitagarwal ankitagarwal committed Jun 29, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 calendar/delete.php
View
@@ -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 05ddbc3

Please sign in to comment.