Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-47186 calendar: Changed month name to h2 from h1
Browse files Browse the repository at this point in the history
  • Loading branch information
marsh0lion committed Sep 10, 2014
1 parent 1446e02 commit 1d3972a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -923,7 +923,8 @@ function calendar_top_controls($type, $data) {
}

$content .= html_writer::start_tag('div', array('class'=>'calendar-controls'));
$content .= $left . '<span class="hide"> | </span><h1 class="current">'.userdate($time, get_string('strftimemonthyear'))."</h1>";
$content .= $left . '<span class="hide"> | </span>';
$content .= $OUTPUT->heading(userdate($time, get_string('strftimemonthyear')), 2, 'current');
$content .= '<span class="hide"> | </span>' . $right;
$content .= '<span class="clearer"><!-- --></span>';
$content .= html_writer::end_tag('div')."\n";
Expand Down

0 comments on commit 1d3972a

Please sign in to comment.