Some smallish bugs had escaped me during the transition to DST.

This commit is contained in:
defacer
2005-02-18 01:26:04 +00:00
parent 57f1191c2e
commit 3477a9007d
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -600,11 +600,13 @@ function calendar_top_controls($type, $data) {
// Get the format string
$text = get_string('strftimedaydate');
/*
// Regexp hackery to make a link out of the month/year part
$text = ereg_replace('(%B.+%Y|%Y.+%B|%Y.+%m[^ ]+)', '<a href="'.calendar_get_link_href('view.php?view=month&amp;', 1, $data['m'], $data['y']).'">\\1</a>', $text);
$text = ereg_replace('(F.+Y|Y.+F|Y.+m[^ ]+)', '<a href="'.calendar_get_link_href('view.php?view=month&amp;', 1, $data['m'], $data['y']).'">\\1</a>', $text);
*/
// Replace with actual values and lose any day leading zero
$text = usergetdate($text, $time);
$text = userdate($time, $text);
// Print the actual thing
$content .= '<td class="current">'.$text.'</td>';
+1 -1
View File
@@ -217,7 +217,7 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
if (empty($events)) {
// There is nothing to display today.
echo '<p>'.get_string('daywithnoevents', 'calendar').'</p>';
echo '<h3>'.get_string('daywithnoevents', 'calendar').'</h3>';
} else {