From 73341343a6e04da35aaf703bf42eec40893a26aa Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 6 Apr 2004 14:01:43 +0000 Subject: [PATCH] Corrected an oversight: the id variable isn't needed on the front page. (Or so I think... brain's a bit moodled right now... ;) --- calendar/lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 9e415e782be..5ebd883300d 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']."