From 82aca39c0a2b98f52a19ca49ab322cfb53fa5155 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 27 Oct 2002 03:37:19 +0000 Subject: Day and Month printer view now work. --- print.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print.php') diff --git a/print.php b/print.php index 9d34ed2..74832f0 100644 --- a/print.php +++ b/print.php @@ -13,7 +13,7 @@ $end_week_time = $start_week_time + (6 * 25 * 60 * 60); $start_week = localizeDate($dateFormat_week, $start_week_time); $end_week = localizeDate($dateFormat_week, $end_week_time); $parse_month = date ("Ym", strtotime($getdate)); -$rssview = $HTTP_GET_VARS['rssview']; +$printview = $HTTP_GET_VARS['printview']; $cal_displayname = str_replace("32", " ", $cal); $events_week = 0; @@ -51,7 +51,7 @@ $events_week = 0; // Pull out only this months ereg ("([0-9]{6})([0-9]{2})", $key, $regs); - if ($regs[1] == $parse_month) { + if ((($regs[1] == $parse_month) && ($printview == "month")) || (($key == $getdate) && ($printview == "day"))) { $dayofmonth = strtotime ($key); $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); echo "\n"; -- cgit v1.2.3