Permalink
Browse files

Corrected an oversight: the id variable isn't needed on the front page.

(Or so I think... brain's a bit moodled right now... ;)
  • Loading branch information...
1 parent 6a8bd80 commit 73341343a6e04da35aaf703bf42eec40893a26aa defacer committed Apr 6, 2004
Showing with 4 additions and 2 deletions.
  1. +4 −2 calendar/lib.php
View
@@ -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&amp;', 1, $data['m'], $data['y']).'">'.$monthname.' '.$data['y']."</a></td>\n";

0 comments on commit 7334134

Please sign in to comment.