Skip to content

Commit

Permalink
Merge branch 'm28_MDL-47186' of https://github.com/totara/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Sep 15, 2014
2 parents 7114249 + 1d3972a commit e8cf07f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions calendar/lib.php
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 e8cf07f

Please sign in to comment.