From 1793dd8899c55ae0bbc25638d218bfebc649ee23 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Jan 2007 18:13:33 +0000 Subject: [PATCH] as agreed in the devel-days: no more CreateObject in new code, also fixes problems with the session restore --- phpgwapi/templates/idots/class.idots_framework.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index 049530a685..7711d876bc 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -15,6 +15,7 @@ require_once(EGW_API_INC.'/class.egw_framework.inc.php'); require_once(EGW_API_INC.'/class.Template.inc.php'); require_once(EGW_API_INC.'/class.dragdrop.inc.php'); +require_once(EGW_API_INC.'/class.tplsavant2.inc.php'); /** * eGW idots template @@ -56,7 +57,7 @@ class idots_framework extends egw_framework $GLOBALS['egw_info']['flags']['include_xajax'] = True; $this->egw_framework($template); // call the constructor of the extended class - $this->tplsav2 = CreateObject('phpgwapi.tplsavant2'); + $this->tplsav2 =& new tplsavant2(); $this->tplsav2->set_tpl_path(EGW_SERVER_ROOT.SEP.'phpgwapi'.SEP.'templates'.SEP.'idots'); }