mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fix for bug 1365 (supplementary):
Here's the other half of the fix.
This commit is contained in:
parent
3c801a5df1
commit
f765674612
@ -528,8 +528,8 @@ function calendar_top_controls($type, $data) {
|
||||
case 'month':
|
||||
list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']);
|
||||
list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']);
|
||||
$prevdate = calendar_gmmktime_check($prevmonth, 1, $prevyear);
|
||||
$nextdate = calendar_gmmktime_check($nextmonth, 1, $nextyear);
|
||||
$prevdate = calendar_mktime_check($prevmonth, 1, $prevyear);
|
||||
$nextdate = calendar_mktime_check($nextmonth, 1, $nextyear);
|
||||
$content .= "<table style='width: 100%;'><tr>\n";
|
||||
$content .= '<td style="text-align: left; width: 30%;"><a href="'.calendar_get_link_href('view.php?view=month&', 1, $prevmonth, $prevyear).'"><< '.strftime(get_string('strftimemonthyear'), $prevdate)."</a></td>\n";
|
||||
$content .= '<td style="text-align: center"><strong>'.strftime(get_string('strftimemonthyear'), $time)."</strong></td>\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user