From: defacer Date: Tue, 6 Apr 2004 14:01:43 +0000 (+0000) Subject: Corrected an oversight: the id variable isn't needed on the front page. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=73341343a6e04da35aaf703bf42eec40893a26aa;p=moodle.git Corrected an oversight: the id variable isn't needed on the front page. (Or so I think... brain's a bit moodled right now... ;) --- diff --git a/calendar/lib.php b/calendar/lib.php index 9e415e782b..5ebd883300 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -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 .= ''; $content .= '\n"; $content .= '\n";
'.$prevlink."'.$monthname.' '.$data['y']."