Eloy discovered this little bug hiding under the rug. Even though this code

is not used at all right now, it was wrong and would need to be fixed when
we have calendars for the site front page.

Thanks Eloy! :)
This commit is contained in:
defacer
2004-05-07 10:46:34 +00:00
parent bacafa1ca9
commit 61854a2fff
+1 -1
View File
@@ -499,7 +499,7 @@ function calendar_top_controls($type, $data) {
$prevlink = calendar_get_link_tag('<<', 'index.php?', 0, $prevmonth, $prevyear);
$content .= '<table class="generaltable" style="width: 100%;"><tr>';
$content .= '<td style="text-align: left; width: 12%;">'.$prevlink."</td>\n";
$content .= '<td style="text-align: center;"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&amp;', 1, $data['m'], $data['y']).'">'.$monthname.' '.$data['y']."</a></td>\n";
$content .= '<td style="text-align: center;"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&amp;', 1, $data['m'], $data['y']).'">'.strftime(get_string('strftimemonthyear'), $time)."</a></td>\n";
$content .= '<td style="text-align: right; width: 12%;">'.$nextlink."</td>\n";
$content .= '</tr></table>';
break;