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_shared.inc.php");
$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->translation = new translation;

View File

@ -36,4 +36,4 @@
}
}
}
?>
?>

View File

@ -56,7 +56,7 @@
if (PHP_VERSION > "4.0.3pl1") {
$phpgw_info = unserialize($db->f("session_info"));
} else {
$phpgw_info = unserialize(stripslashes($db->f("session_info")));
$phpgw_info = unserialize(stripslashes($db->f("session_info")));
}
$phpgw_info["flags"] = $phpgw_info_flags;
@ -77,6 +77,8 @@
if (! $phpgw_info["user"]["userid"] ) {
return False;
} else {
$phpgw->preferences->preferences = $phpgw_info["user"]["preferences"];
$phpgw->preferences->account_id = $phpgw_info["user"]["account_id"];
return True;
}
}