Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…int_event from delete.php
  • Loading branch information...
commit 05ddbc3143430e9c166036f52572632a1a71c776 1 parent 4776262
@ankitagarwal ankitagarwal authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.