diff options
author | fenner <fenner> | 2002-10-22 21:13:18 +0000 |
---|---|---|
committer | fenner <fenner> | 2002-10-22 21:13:18 +0000 |
commit | 5ff10079fa8bb0d516923cb625cdbf826474623d (patch) | |
tree | 117f54479bc54695301077678274156a468172ff /functions | |
parent | 4bb8ac11b86112928d013e8fae12e7542a732626 (diff) | |
download | phpicalendar-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')
-rw-r--r-- | functions/ical_parser.php | 4 |
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 (); |