From 22f9d3d668df2e2670d7199eaa6a14b19f301334 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 25 Nov 2000 03:23:17 +0000 Subject: [PATCH] maybe fixes for templates --- calendar/index.php | 12 ++++++------ calendar/templates/default/index.tpl | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/calendar/index.php b/calendar/index.php index 542575ab6d..dfb24871c6 100755 --- a/calendar/index.php +++ b/calendar/index.php @@ -59,9 +59,9 @@ $view = "month"; - $phpgw->template->set_file(array("index" => "index.tpl")); + $phpgw->template->set_file(array("index_t" => "index.tpl")); - $phpgw->template->set_block("index"); + $phpgw->template->set_block("index_t","index"); if ($friendly) { $phpgw->template->set_var("printer_friendly",""); @@ -82,12 +82,12 @@ $param = "year=".$now["year"]."&month=".$now["month"]."&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","index"); - $phpgw->template->pparse("out","index"); + $phpgw->template->parse("out","index_t"); + $phpgw->template->pparse("out","index_t"); $phpgw->common->phpgw_footer(); } else { $phpgw->template->set_var("print",""); - $phpgw->template->parse("out","index"); - $phpgw->template->pparse("out","index"); + $phpgw->template->parse("out","index_t"); + $phpgw->template->pparse("out","index_t"); } ?> diff --git a/calendar/templates/default/index.tpl b/calendar/templates/default/index.tpl index 59cbf7d12c..bf14986f4e 100755 --- a/calendar/templates/default/index.tpl +++ b/calendar/templates/default/index.tpl @@ -1,5 +1,4 @@ - {printer_friendly}