From 8a971040036f4948b278a3837cd5e3b3d3140d14 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Wed, 3 May 2006 04:29:47 +0000 Subject: allow default_cal to be a comma delimited list of cals --- functions/init.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions/init.inc.php') diff --git a/functions/init.inc.php b/functions/init.inc.php index 2ab67de..7ef2c0d 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -40,7 +40,7 @@ if(isset($_REQUEST['cpath'])&& $_REQUEST['cpath'] !=''){ }elseif(isset($default_cpath_check) && $default_cpath_check !='' ){ $cpath = str_replace('..','',$default_cpath_check); $calendar_path .= "/$cpath"; - $tmp_dir .= "/$cpath"; +# $tmp_dir .= "/$cpath"; } #these need cpath to be set #set up specific template folder for a particular cpath @@ -115,7 +115,7 @@ if (isset($_GET['cal'])) { $calcheck = $calendar_path.'/'.$default_cal_check.'.ics'; $calcheckopen = @fopen($calcheck, "r"); if ($calcheckopen == FALSE) { - $cal_filenames[0] = $default_cal; + $cal_filenames = explode(',',$default_cal); } else { $cal_filenames[0] = $default_cal_check; } @@ -123,7 +123,7 @@ if (isset($_GET['cal'])) { $cal_filenames[0] = $ALL_CALENDARS_COMBINED; } } else { - $cal_filenames[0] = $default_cal; + $cal_filenames = explode(',',$default_cal); } } //load cal_filenames if $ALL_CALENDARS_COMBINED -- cgit v1.2.3