mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Updated preferences to the new format of the functions
This commit is contained in:
parent
94749ab7fd
commit
e4eed5aa2d
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user