use the new singleton pattern for the accountsclass

This commit is contained in:
Lars Kneschke 2008-02-08 11:30:40 +00:00
parent d31d731513
commit 2403c5d0f7

View File

@ -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.