diff --git a/calendar/delete.php b/calendar/delete.php index 7ab989a471f..24edd48b71a 100644 --- a/calendar/delete.php +++ b/calendar/delete.php @@ -28,6 +28,7 @@ require_once('../config.php'); require_once($CFG->dirroot.'/calendar/event_form.php'); require_once($CFG->dirroot.'/calendar/lib.php'); require_once($CFG->dirroot.'/course/lib.php'); +require_once($CFG->dirroot.'/calendar/renderer.php'); $eventid = required_param('id', PARAM_INT); $confirm = optional_param('confirm', false, PARAM_BOOL); @@ -121,7 +122,10 @@ echo $OUTPUT->box_end(); // 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();