From c851f3f32d32b2132db9535e14b77ed31f108995 Mon Sep 17 00:00:00 2001 From: skeeter Date: Mon, 27 Nov 2000 11:27:14 +0000 Subject: [PATCH] fix for day view warning --- calendar/day.php | 12 ++++++------ calendar/templates/default/day.tpl | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/calendar/day.php b/calendar/day.php index 3d6a87837d..2f5774aa21 100644 --- a/calendar/day.php +++ b/calendar/day.php @@ -70,9 +70,9 @@ $now = $phpgw->calendar->splitdate(mktime (2, 0, 0, $thismonth, $thisday, $thisyear)); - $phpgw->template->set_file(array("day" => "day.tpl")); + $phpgw->template->set_file(array("day_t" => "day.tpl")); - //$phpgw->template->set_block("day"); + //$phpgw->template->set_block("day_t"); if ($friendly) { $phpgw->template->set_var("printer_friendly",""); @@ -91,12 +91,12 @@ if (!$friendly) { $param = "year=".$now["year"]."&month=".$now["month"]."&day=".$now["day"]."&friendly=1"; $phpgw->template->set_var("print","link($PHP_SELF,$param)."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang("Generate printer-friendly version")."'\">[".lang("Printer Friendly")."]"); - $phpgw->template->parse("out","day"); - $phpgw->template->pparse("out","day"); + $phpgw->template->parse("out","day_t"); + $phpgw->template->pparse("out","day_t"); $phpgw->common->phpgw_footer(); } else { $phpgw->template->set_var("print",""); - $phpgw->template->parse("out","day"); - $phpgw->template->pparse("out","day"); + $phpgw->template->parse("out","day_t"); + $phpgw->template->pparse("out","day_t"); } ?> diff --git a/calendar/templates/default/day.tpl b/calendar/templates/default/day.tpl index 27783e7a1e..b7b9d13af4 100755 --- a/calendar/templates/default/day.tpl +++ b/calendar/templates/default/day.tpl @@ -1,5 +1,4 @@ - {printer_friendly} @@ -30,4 +29,4 @@
{print} - +