From 16bb85a6ccafa910ef5509406dfb41e65bb4c162 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 20 Jul 2005 12:46:59 +0000 Subject: [PATCH] using a (dummy) egw object instead the new one with all the session stuff --- setup/inc/class.setup.inc.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index 42953a127a..39194c3065 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -16,6 +16,12 @@ /* $Id$ */ + class egw_dummy { + var $db; + var $common; + var $accounts; + } + class setup { var $db; @@ -880,9 +886,9 @@ { $GLOBALS['egw_info']['server'][$this->db->f('config_name')] = $this->db->f('config_value'); } - if (!is_object($GLOBALS['egw'])) + //if (!is_object($GLOBALS['egw'])) { - $GLOBALS['egw'] =& CreateObject('phpgwapi.egw'); + $GLOBALS['egw'] =& new egw_dummy(); $GLOBALS['phpgw'] =& $GLOBALS['egw']; } $GLOBALS['egw']->db = clone($this->db);