aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-11-11 20:25:36 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-11-11 20:25:36 +0000
commitd94e823967fad039ac8c74905980e89acfa35fe1 (patch)
tree86046b9b2715c2ecd0984a33cacd542ae965e02d
parenta5a0a790c97e9a00aa514072110a6f581a54c991 (diff)
downloadphpicalendar-d94e823967fad039ac8c74905980e89acfa35fe1.tar.gz
phpicalendar-d94e823967fad039ac8c74905980e89acfa35fe1.tar.bz2
phpicalendar-d94e823967fad039ac8c74905980e89acfa35fe1.zip
fix url change webcal to http to get cal name
-rw-r--r--functions/calendar_functions.php2
1 files changed, 2 insertions, 0 deletions
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)) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy