mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Corrected an oversight: the id variable isn't needed on the front page.
(Or so I think... brain's a bit moodled right now... ;)
This commit is contained in:
parent
6a8bd8087e
commit
73341343a6
@ -487,8 +487,10 @@ function calendar_top_controls($type, $data) {
|
||||
case 'frontpage':
|
||||
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('>>', 'index.php?id='.$data['id'].'&', 0, $nextmonth, $nextyear);
|
||||
$prevlink = calendar_get_link_tag('<<', 'index.php?id='.$data['id'].'&', 0, $prevmonth, $prevyear);
|
||||
//$nextlink = calendar_get_link_tag('>>', 'index.php?id='.$data['id'].'&', 0, $nextmonth, $nextyear);
|
||||
//$prevlink = calendar_get_link_tag('<<', 'index.php?id='.$data['id'].'&', 0, $prevmonth, $prevyear);
|
||||
$nextlink = calendar_get_link_tag('>>', 'index.php?', 0, $nextmonth, $nextyear);
|
||||
$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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user