From 01b0f63865239dc74ce03077f7f0d8e14899ee17 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 24 May 2001 15:49:15 +0000 Subject: [PATCH] using CreateObject('phpgwapi.Template',PHPGW_APP_TPL); --- infolog/csv_import.php | 2 +- infolog/delete.php | 2 +- infolog/edit.php | 1 + infolog/index.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/infolog/csv_import.php b/infolog/csv_import.php index 8e67eba434..26e3874111 100644 --- a/infolog/csv_import.php +++ b/infolog/csv_import.php @@ -18,7 +18,7 @@ $phpgw->infolog = createobject('infolog.infolog'); - $t = new Template($phpgw_info['server']['app_tpl']); // $t->unknows = 'keep'; $t->debug = 1; + $t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); // $t->unknows = 'keep'; $t->debug = 1; $t->set_file(array('import' => 'csv_import.tpl')); $t->set_block('import','filename','filenamehandle'); $t->set_block('import','fheader','fheaderhandle'); diff --git a/infolog/delete.php b/infolog/delete.php index 7306a6a637..63544d7648 100644 --- a/infolog/delete.php +++ b/infolog/delete.php @@ -49,7 +49,7 @@ . "\n" . "\n"; - $phpgw->template = new Template($phpgw->common->get_tpl_dir('info')); + $phpgw->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); $phpgw->template->set_file(array( 'info_delete' => 'delete.tpl' )); $phpgw->template->set_var( $phpgw->infolog->setStyleSheet( )); $phpgw->template->set_var( $phpgw->infolog->infoHeaders( )); diff --git a/infolog/edit.php b/infolog/edit.php index 25b977b24e..6a08691c7e 100644 --- a/infolog/edit.php +++ b/infolog/edit.php @@ -150,6 +150,7 @@ $pri_selected[$phpgw->infolog->data['info_pri']] = ' selected'; $status_selected[$phpgw->infolog->data['info_status']] = ' selected'; + $phpgw->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); $phpgw->template->set_file(array('info_edit' => 'form.tpl')); // ==================================================================== diff --git a/infolog/index.php b/infolog/index.php index 2abe1b7b68..d49e0bdd4a 100644 --- a/infolog/index.php +++ b/infolog/index.php @@ -24,7 +24,7 @@ $db = $phpgw->db; $db2 = $phpgw->db; - $phpgw->template = new Template($phpgw->common->get_tpl_dir('infolog')); + $phpgw->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); $phpgw->template->set_file(array( 'info_list_t' => 'list.tpl' )); $phpgw->template->set_block('info_list_t','info_list','list');