auto reset of defaultcalendar setting

This commit is contained in:
skeeter 2001-01-21 13:57:21 +00:00
parent 2d91e22930
commit d489da2251

View File

@ -23,7 +23,11 @@
include("../header.inc.php"); include("../header.inc.php");
$newpage = $phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"]; $newpage = $phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"];
if ($namepage=="index.php") $newpage = "month.php"; if ($namepage=="index.php") {
$newpage = "month.php";
$phpgw->preferences->change("calendar","defaultcalendar","month.php");
$phpgw->preferences->commit();
}
Header("Location: ".$newpage."?".$QUERY_STRING); Header("Location: ".$newpage."?".$QUERY_STRING);
$phpgw->common->phpgw_exit(); $phpgw->common->phpgw_exit();