aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-04-10 02:22:32 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-04-10 02:22:32 +0000
commite40574de93572c968f955b43fcd6d82f47bf3e7c (patch)
tree1b04b1b172d1f983ec3257846d7b363eeef9a578 /functions/ical_parser.php
parent3fee91025e67b32992575ca18e5845a382d56066 (diff)
downloadphpicalendar-e40574de93572c968f955b43fcd6d82f47bf3e7c.tar.gz
phpicalendar-e40574de93572c968f955b43fcd6d82f47bf3e7c.tar.bz2
phpicalendar-e40574de93572c968f955b43fcd6d82f47bf3e7c.zip
get real calendar names if save parsed cals set
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 945f010..689a64c 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -58,6 +58,10 @@ if ($save_parsed_cals == 'yes') {
}
$z++;
}
+ foreach ($master_array['-3'] as $temp_array) {
+ if (isset($temp_array) && $temp_array !='') $caldisplaynames[] = $temp_array;
+ }
+
if ($y == sizeof($cal_filelist)) {
if ($master_array['-1'] == 'valid cal file') {
$parse_file = false;
@@ -1200,7 +1204,7 @@ if ($parse_file) {
if ($cal == $ALL_CALENDARS_COMBINED) {
$calendar_name = $all_cal_comb_lang;
}
-$cal_displayname = implode(', ', $cal_displaynames); #reset this with the correct names
+$cal_displayname = urldecode(implode(', ', $cal_displaynames)); #reset this with the correct names
$template_started = getmicrotime();
//If you want to see the values in the arrays, uncomment below.

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