From: Jan Schneider Date: Tue, 22 Dec 2009 22:37:10 +0000 (+0100) Subject: Set calendar description. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4517298c83ff286974f5461d6022d377c5c31a8f;p=horde.git Set calendar description. --- diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php index a8c4e3540..f4382fe2e 100644 --- a/kronolith/lib/Api.php +++ b/kronolith/lib/Api.php @@ -766,7 +766,10 @@ class Kronolith_Api extends Horde_Registry_Api $share = $kronolith_shares->getShare($calendar); $iCal = new Horde_iCalendar($version); - $iCal->setAttribute('X-WR-CALNAME', Horde_String::convertCharset($share->get('name'), Horde_Nls::getCharset(), 'utf-8')); + $iCal->setAttribute('X-WR-CALNAME', Horde_String::convertCharset($share->get('name'), Horde_Nls::getCharset(), 'UTF-8')); + if (strlen($share->get('desc'))) { + $iCal->setAttribute('X-WR-CALDESC', Horde_String::convertCharset($share->get('desc'), Horde_Nls::getCharset(), 'UTF-8')); + } foreach ($events as $dayevents) { foreach ($dayevents as $event) {