#516 fixes for ical output 1.1.5 (import with outlook 2007)

open
nobody
None
5
2013-01-14
2007-09-15
Grimmier
No

below are some changes that you can make which will allow you to use either of the subscribe URl's with outlook.

Also this fixes blank ical exported files.

[includes/xcal.php]
go to line 1072

remove
---
// attachment will be true if called during email creation
if ( !$attachment ) {
echo $ret;
} else {
return $ret;
}
---
and replace it with

return $ret;

this will always return the ical object.

now you just have to find all the instances where export_ical function is called.

[icalclient.php]

at the end of the file
change "export_ical ();" to
echo export_ical ();

do the same thing for the file [publish.php]

then go to [pexporthandler.php]
line 254
change to
echo export_ical ( $id );

these will allow you to import your calendars with outlook 2007. (not tested on earlier)

Discussion

  • Grimmier
    Grimmier
    2007-09-15

    Logged In: YES
    user_id=1891228
    Originator: YES

    add this line to the top of the [includes/classes/WebCalendar.class] file

    include_once 'includes/formvars.php';