From d0849b6c39fcf4c2015d0a84afe86f02c5817a96 Mon Sep 17 00:00:00 2001 From: jengo Date: Tue, 6 Feb 2001 13:58:59 +0000 Subject: [PATCH] Making sure things are in sync --- phpgwapi/templates/default/head.inc.php | 3 ++- phpgwapi/templates/default/navbar.inc.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/templates/default/head.inc.php b/phpgwapi/templates/default/head.inc.php index d9f873123b..894fc5a120 100644 --- a/phpgwapi/templates/default/head.inc.php +++ b/phpgwapi/templates/default/head.inc.php @@ -19,10 +19,11 @@ $bodyheader = 'BGCOLOR="' . $phpgw_info["theme"]["bg_color"] . '"'; } - $tpl = $phpgw->template; //CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); + $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns("remove"); $tpl->set_file(array("head" => "head.tpl")); $tpl->set_var("website_title", $phpgw_info["server"]["site_title"]); $tpl->set_var("body_tags",$bodyheader); echo $tpl->finish($tpl->parse("out","head")); + unset($tpl); ?> \ No newline at end of file diff --git a/phpgwapi/templates/default/navbar.inc.php b/phpgwapi/templates/default/navbar.inc.php index a20a2ede1b..f488bcf07a 100644 --- a/phpgwapi/templates/default/navbar.inc.php +++ b/phpgwapi/templates/default/navbar.inc.php @@ -103,7 +103,7 @@ if ($phpgw_info["server"]["showpoweredbyon"] == "bottom") { $msg = "

\n" . lang("Powered by phpGroupWare version x", $phpgw_info["server"]["versions"]["phpgwapi"]); - $tpl = new Template($phpgw_info["server"]["template_dir"]); + $tpl = createobject("phpgwapi.Template",PHPGW_TEMPLATE_DIR); $tpl->set_unknowns("remove"); $tpl->set_file(array("footer" => "footer.tpl"));