diff --git a/calendar/preferences.php b/calendar/preferences.php index 27901610e4..4efb76d30f 100644 --- a/calendar/preferences.php +++ b/calendar/preferences.php @@ -16,13 +16,13 @@ include("../header.inc.php"); if ($submit) { - $phpgw->common->preferences_delete("byapp",$phpgw_info["user"]["account_id"],"calendar"); + $phpgw->preferences->preferences_delete("byapp",$phpgw_info["user"]["account_id"],"calendar"); - $phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"weekdaystarts","calendar"); - $phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"workdaystarts","calendar"); - $phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"workdayends","calendar"); + $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"weekdaystarts","calendar"); + $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"workdaystarts","calendar"); + $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"workdayends","calendar"); if ($mainscreen_showevents) { - $phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"mainscreen_showevents","calendar"); + $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"mainscreen_showevents","calendar"); } Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php")); exit; @@ -36,6 +36,7 @@ } echo "

" . lang("Calendar preferences") . ":" . "


"; + ?>

@@ -45,7 +46,10 @@ nextmatchs->alternate_row_color($tr_color); ?> - + - \ No newline at end of file +
?>> +