use the new accounts singleton and set only the accountId

This commit is contained in:
Lars Kneschke 2008-02-08 11:32:10 +00:00
parent 2403c5d0f7
commit 8c8e793fee

View File

@ -428,7 +428,7 @@
if ($fill_egw_info_and_repositories) if ($fill_egw_info_and_repositories)
{ {
$GLOBALS['egw']->acl->acl($this->account_id); $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']->preferences->preferences($this->account_id);
$GLOBALS['egw']->applications->applications($this->account_id); $GLOBALS['egw']->applications->applications($this->account_id);
} }
@ -1019,7 +1019,7 @@
function read_repositories($cached='',$write_cache=True) function read_repositories($cached='',$write_cache=True)
{ {
$GLOBALS['egw']->acl->acl($this->account_id); $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']->preferences->preferences($this->account_id);
$GLOBALS['egw']->applications->applications($this->account_id); $GLOBALS['egw']->applications->applications($this->account_id);