Dear Bluefox,
now I would like to install the Joomla 3.7 update and update to PHP 7
would you risk that or do I have to touch the helper file or anything again?
events.csd.isd-muc.de/
thanks
antonia
Bluefox wrote: Did not test it with other calendars (maybe tomorrow) but did do the following:
- File: components/com_jem/helpers/helper.php
Around line 830 you will find the function "static function getCalendarTool()"
and you can test out if the following code works for you.
/**
* return initialized calendar tool class for ics export
*
* @return object
*/
static function getCalendarTool()
{
require_once JPATH_SITE.'/components/com_jem/classes/iCalcreator.class.php';
$timezone_name = JemHelper::getTimeZoneName();
$config = JFactory::getConfig();
$sitename = $config->get('sitename');
$config = array( "unique_id" => $sitename, "TZID" => $timezone_name );
$vcal = new vcalendar();
if (!file_exists(JPATH_SITE.'/cache/com_jem')) {
jimport('joomla.filesystem.folder');
JFolder::create(JPATH_SITE.'/cache/com_jem');
}
$vcal->setConfig('directory', JPATH_SITE.'/cache/com_jem');
$vcal->setProperty("calscale", "GREGORIAN");
$vcal->setProperty('method', 'PUBLISH');
$vcal->setProperty("X-WR-TIMEZONE", $timezone_name);
$vcal->setProperty("x-wr-calname", "Calendar");
$vcal->setProperty("X-WR-CALDESC", "Calendar Description");
$xprops = array( "X-LIC-LOCATION" => $timezone_name );
if ($timezone_name != 'UTC') {
iCalUtilityFunctions::createTimezone( $vcal, $timezone_name, $xprops);
}
return $vcal;
}
you might want to change or remove the lines for the name of the calendar (calname/caldesc).