Skip to content

Commit

Permalink
MDL-27842 calendar: remove usage of deprecated function calendar_prin…
Browse files Browse the repository at this point in the history
…t_event
  • Loading branch information
ankitagarwal committed Jun 29, 2012
1 parent 68b0cae commit 06314d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion calendar/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.