aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorfenner <fenner>2002-10-22 21:13:18 +0000
committerfenner <fenner>2002-10-22 21:13:18 +0000
commit5ff10079fa8bb0d516923cb625cdbf826474623d (patch)
tree117f54479bc54695301077678274156a468172ff /functions/ical_parser.php
parent4bb8ac11b86112928d013e8fae12e7542a732626 (diff)
downloadphpicalendar-5ff10079fa8bb0d516923cb625cdbf826474623d.tar.gz
phpicalendar-5ff10079fa8bb0d516923cb625cdbf826474623d.tar.bz2
phpicalendar-5ff10079fa8bb0d516923cb625cdbf826474623d.zip
Set a default calendar name, based on the filename of the calendar.
This is overridden by X-WR-CALNAME, if present.
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 6d0f424..71ecb2f 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -60,6 +60,10 @@ if ($parse_file) {
// Set a value so we can check to make sure $master_array contains valid data
$master_array['-1'] = 'valid cal file';
+
+ // Set default calendar name - can be overridden by X-WR-CALNAME
+ $calendar_name = $cal_filename;
+ $master_array['calendar_name'] = $calendar_name;
// auxiliary array for determining overlaps of events
$overlap_array = array ();

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