mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'm28_MDL-47186' of https://github.com/totara/moodle
This commit is contained in:
commit
e8cf07fa51
@ -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 . '<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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user