diff --git a/calendar/lib.php b/calendar/lib.php
index 9e4534e43cc..b56874787c9 100644
--- a/calendar/lib.php
+++ b/calendar/lib.php
@@ -627,18 +627,18 @@ function calendar_top_controls($type, $data) {
$content .= ''.$prevlink."\n";
$content .= ' | '.userdate($time, get_string('strftimemonthyear')).'';
$content .= ' | '.$nextlink."\n";
- $content .= '';
+ $content .= "\n";
break;
case 'course':
list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']);
list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']);
- $nextlink = calendar_get_link_tag('>>', 'view.php?id='.$data['id'].'&', 0, $nextmonth, $nextyear);
- $prevlink = calendar_get_link_tag('<<', 'view.php?id='.$data['id'].'&', 0, $prevmonth, $prevyear);
- $content .= '
';
+ $nextlink = calendar_get_link_tag($nexttext, 'view.php?id='.$data['id'].'&', 0, $nextmonth, $nextyear);
+ $prevlink = calendar_get_link_tag($prevtext, 'view.php?id='.$data['id'].'&', 0, $prevmonth, $prevyear);
+ $content .= '\n";
break;
case 'upcoming':
$content .= '\n";
@@ -651,11 +651,11 @@ function calendar_top_controls($type, $data) {
list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']);
$prevdate = make_timestamp($prevyear, $prevmonth, 1);
$nextdate = make_timestamp($nextyear, $nextmonth, 1);
- $content .= '\n";
+ $content .= '\n";
break;
case 'day':
$data['d'] = $date['mday']; // Just for convenience
@@ -663,8 +663,8 @@ function calendar_top_controls($type, $data) {
$nextdate = usergetdate(make_timestamp($data['y'], $data['m'], $data['d'] + 1));
$prevname = calendar_wday_name($CALENDARDAYS[$prevdate['wday']]);
$nextname = calendar_wday_name($CALENDARDAYS[$nextdate['wday']]);
- $content .= '';
- $content .= '| << '.$prevname." | \n";
+ $content .= '';
+ $content .= '
< '.$prevname."\n";
// Get the format string
$text = get_string('strftimedaydate');
@@ -676,10 +676,10 @@ function calendar_top_controls($type, $data) {
// Replace with actual values and lose any day leading zero
$text = userdate($time, $text);
// Print the actual thing
- $content .= '
'.$text.' | ';
+ $content .= '
| '.$text.'';
- $content .= '
'.$nextname." >> | \n";
- $content .= '
';
+ $content .= ' | '.$nextname." >\n";
+ $content .= "\n";
break;
}
return $content;