as agreed in the devel-days: no more CreateObject in new code, also fixes problems with the session restore

This commit is contained in:
Ralf Becker 2007-01-05 18:13:33 +00:00
parent baf3f4bd7f
commit 1793dd8899

View File

@ -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');
}