From 1e5db3ceb99588223035c3ceed055bc03511e04b Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 12 Dec 2008 06:37:29 +0000 Subject: misc changes for new config model --- functions/init/configs.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'functions/init') diff --git a/functions/init/configs.php b/functions/init/configs.php index aa79610..8c47324 100644 --- a/functions/init/configs.php +++ b/functions/init/configs.php @@ -10,7 +10,7 @@ if ($phpiCal_config->cookie_uri == '') { } $cookie_name = 'phpicalendar_'.basename($phpiCal_config->default_path); if (isset($_COOKIE[$cookie_name]) && !isset($_POST['unset'])) { - $phpicalendar = unserialize(stripslashes($_COOKIE[$phpiCal_config->cookie_uri])); + $phpicalendar = unserialize(stripslashes($_COOKIE[$cookie_name])); if (isset($phpicalendar['cookie_language'])) $phpiCal_config->setProperty('language', $phpicalendar['cookie_language']); if (isset($phpicalendar['cookie_calendar'])) $phpiCal_config->setProperty('default_cal_check', $phpicalendar['cookie_calendar']); if (isset($phpicalendar['cookie_cpath'])) $phpiCal_config->setProperty('default_cpath_check', $phpicalendar['cookie_cpath']); @@ -19,7 +19,8 @@ if (isset($_COOKIE[$cookie_name]) && !isset($_POST['unset'])) { $phpiCal_config->setProperty('template', $phpicalendar['cookie_style']); } if (isset($phpicalendar['cookie_startday'])) $phpiCal_config->setProperty('week_start_day', $phpicalendar['cookie_startday']); - if (isset($phpicalendar['cookie_time'])) $phpiCal_config->setProperty('day_start', $phpicalendar['cookie_time']); echo "cookie!"; + if (isset($phpicalendar['cookie_time'])) $phpiCal_config->setProperty('day_start', $phpicalendar['cookie_time']); + echo "cookie!"; } # language support -- cgit v1.2.3