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:
+1
-1
@@ -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&', 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&', 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;
|
||||
|
||||
Reference in New Issue
Block a user