From 2403c5d0f7b1f20525479f0c08140182d828d4a7 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 8 Feb 2008 11:30:40 +0000 Subject: [PATCH] use the new singleton pattern for the accountsclass --- phpgwapi/inc/class.egw.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw.inc.php b/phpgwapi/inc/class.egw.inc.php index 94ef721c0a..c34e0cae99 100644 --- a/phpgwapi/inc/class.egw.inc.php +++ b/phpgwapi/inc/class.egw.inc.php @@ -131,7 +131,8 @@ $this->common =& CreateObject('phpgwapi.common'); $this->hooks =& CreateObject('phpgwapi.hooks'); $this->auth =& CreateObject('phpgwapi.auth'); - $this->accounts =& CreateObject('phpgwapi.accounts'); + include_once(EGW_INCLUDE_ROOT.'/phpgwapi/inc/class.accounts.inc.php'); + $this->accounts = accounts::getInstance(); $this->acl =& CreateObject('phpgwapi.acl'); /* Do not create the session object if called by the sessions class. This way * we ensure the correct db based on the user domain.