From 4517298c83ff286974f5461d6022d377c5c31a8f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 22 Dec 2009 23:37:10 +0100 Subject: [PATCH] Set calendar description. --- kronolith/lib/Api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.11.0