diff --git a/calendar/lib.php b/calendar/lib.php index dcedc54e66f..8bb2a63ffb4 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -795,7 +795,7 @@ function calendar_get_events_by_id($eventids) { * @return string $content return available control for the calender in html */ function calendar_top_controls($type, $data) { - global $PAGE; + global $PAGE, $OUTPUT; // Get the calendar type we are using. $calendartype = \core_calendar\type_factory::get_calendar_instance(); @@ -923,7 +923,8 @@ function calendar_top_controls($type, $data) { } $content .= html_writer::start_tag('div', array('class'=>'calendar-controls')); - $content .= $left . ' |

'.userdate($time, get_string('strftimemonthyear'))."

"; + $content .= $left . ' | '; + $content .= $OUTPUT->heading(userdate($time, get_string('strftimemonthyear')), 2, 'current'); $content .= ' | ' . $right; $content .= ''; $content .= html_writer::end_tag('div')."\n";