From 8c8e793fee80dc712f9866d97d7ec5daaafeaebf Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 8 Feb 2008 11:32:10 +0000 Subject: [PATCH] use the new accounts singleton and set only the accountId --- phpgwapi/inc/class.sessions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 651183518a..4f1784cdff 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -428,7 +428,7 @@ if ($fill_egw_info_and_repositories) { $GLOBALS['egw']->acl->acl($this->account_id); - $GLOBALS['egw']->accounts->accounts($this->account_id); + accounts::getInstance()->setAccountId($this->account_id); $GLOBALS['egw']->preferences->preferences($this->account_id); $GLOBALS['egw']->applications->applications($this->account_id); } @@ -1019,7 +1019,7 @@ function read_repositories($cached='',$write_cache=True) { $GLOBALS['egw']->acl->acl($this->account_id); - $GLOBALS['egw']->accounts->accounts($this->account_id); + accounts::getInstance()->setAccountId($this->account_id); $GLOBALS['egw']->preferences->preferences($this->account_id); $GLOBALS['egw']->applications->applications($this->account_id);