From d94e823967fad039ac8c74905980e89acfa35fe1 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 11 Nov 2006 20:25:36 +0000 Subject: fix url change webcal to http to get cal name --- functions/calendar_functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index fb2524e..23d23ec 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -219,6 +219,8 @@ function display_ical_list($cals, $pick=FALSE) { $cal_displayname_tmp = $cal_displaynames[array_search($cal_tmp,$cal_filelist)]; }else{ # pull the name from the $cal_tmp file + $cal_tmp = str_replace('webcal://','http://',$cal_tmp); + $ifile = @fopen($cal_tmp, "r"); if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $cal_tmp)); while (!feof($ifile)) { -- cgit v1.2.3