]> git.mjollnir.org Git - moodle.git/commitdiff
Eloy discovered this little bug hiding under the rug. Even though this code
authordefacer <defacer>
Fri, 7 May 2004 10:46:34 +0000 (10:46 +0000)
committerdefacer <defacer>
Fri, 7 May 2004 10:46:34 +0000 (10:46 +0000)
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! :)

calendar/lib.php

index d2e6ed6cc8fe3092bf4872da440523c2918793e0..49cbc14a320428564d5efa4edf0cf43330f55fd3 100644 (file)
@@ -499,7 +499,7 @@ function calendar_top_controls($type, $data) {
             $prevlink = calendar_get_link_tag('&lt;&lt;', '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;