From 3475178412188c9f26960623277dbafd8e560dcf Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 4 Feb 2001 11:11:55 +0000 Subject: [PATCH] Update to use get_tpl_dir --- addressbook/inc/functions.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php index 4d67971781..173d90e452 100755 --- a/addressbook/inc/functions.inc.php +++ b/addressbook/inc/functions.inc.php @@ -77,7 +77,8 @@ function form($format,$action,$title,$fields) { // used for add/edit global $phpgw, $phpgw_info; - $t = new Template($phpgw_info["server"]["app_tpl"]); + #$t = new Template($phpgw_info["server"]["app_tpl"]); + $t = new Template($phpgw->common->get_tpl_dir("addressbook")); $t->set_file(array( "form" => "form.tpl")); $email = $fields["D_EMAIL"]; @@ -327,7 +328,7 @@ $t->set_var("title",$title); $t->set_var("lang_email",lang("Email")); $t->set_var("email",$email); - $t->set_var("lang_email_type",lang("Email Type")); + $t->set_var("lang_email_type",lang("EMail Type")); $t->set_var("email_type",$email_type); $t->set_var("lang_url",lang("URL")); $t->set_var("url",$url);