Updated preferences to the new format of the functions

This commit is contained in:
jengo 2000-12-14 11:58:51 +00:00
parent 94749ab7fd
commit e4eed5aa2d
2 changed files with 8 additions and 8 deletions

View File

@ -27,10 +27,10 @@
if (! $totalerrors) {
while ($pref = each($ab_selected)) {
$phpgw->preferences->change($phpgw_info["user"]["account_id"],$pref[0],"addressbook","addressbook_" . $pref[1]);
$phpgw->preferences->change("addressbook",$pref[0],"addressbook_" . $pref[1]);
}
if ($mainscreen_showbirthdays) {
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"mainscreen_showbirthdays","addressbook");
$phpgw->preferences->change("addressbook","mainscreen_showbirthdays");
} else {
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
}

View File

@ -18,13 +18,13 @@
include("../header.inc.php");
if ($submit) {
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"weekdaystarts","calendar");
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"workdaystarts","calendar");
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"workdayends","calendar");
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"defaultcalendar","common");
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"defaultfilter","calendar");
$phpgw->preferences->change("calendar","weekdaystarts");
$phpgw->preferences->change("calendar","workdaystarts");
$phpgw->preferences->change("calendar","workdayends");
$phpgw->preferences->change("calendar","defaultcalendar");
$phpgw->preferences->change("calendar","defaultfilter");
if ($mainscreen_showevents) {
$phpgw->preferences->change($phpgw_info["user"]["account_id"],"mainscreen_showevents","calendar");
$phpgw->preferences->change("calendar","mainscreen_showevents");
} else {
$phpgw->preferences->delete("calendar","mainscreen_showevents");
}