now allows changing of preference values

This commit is contained in:
skeeter 2000-12-28 01:09:12 +00:00
parent 1c61949d9c
commit a329803c8e
3 changed files with 8 additions and 3 deletions

View File

@ -184,7 +184,10 @@
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_".$phpgw_info["server"]["account_repository"].".inc.php"); include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_".$phpgw_info["server"]["account_repository"].".inc.php");
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_shared.inc.php"); include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_shared.inc.php");
$this->auth = new auth; $this->auth = new auth;
$this->preferences = new preferences($phpgw_info["user"]["account_lid"]); $this->preferences = new preferences();
$this->preferences->preferences = $phpgw_info["user"]["preferences"];
$this->preferences->account_id = $phpgw_info["user"]["account_id"];
} }
$this->accounts = new accounts; $this->accounts = new accounts;
$this->translation = new translation; $this->translation = new translation;

View File

@ -77,6 +77,8 @@
if (! $phpgw_info["user"]["userid"] ) { if (! $phpgw_info["user"]["userid"] ) {
return False; return False;
} else { } else {
$phpgw->preferences->preferences = $phpgw_info["user"]["preferences"];
$phpgw->preferences->account_id = $phpgw_info["user"]["account_id"];
return True; return True;
} }
} }