From 2bbcde123850a21bcda81291d47dff52a50236e1 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Mon, 24 Apr 2006 09:23:02 +0000 Subject: [PATCH] add default contenttype for sifcalendar --- phpgwapi/inc/horde/Horde/SyncML/State.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/horde/Horde/SyncML/State.php b/phpgwapi/inc/horde/Horde/SyncML/State.php index 4921e16393..9f5c097320 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/State.php +++ b/phpgwapi/inc/horde/Horde/SyncML/State.php @@ -630,20 +630,16 @@ class Horde_SyncML_State { */ function getPreferedContentType($type) { -# if ($type == 'contacts') { -# return 'text/x-vcard'; -# } elseif ($type == 'notes') { -# return 'text/x-vnote'; -# } elseif ($type == 'tasks') { -# return 'text/x-vcalendar'; -# } elseif ($type == 'calendar') { -# return 'text/x-vcalendar'; -# } switch($type) { case 'contacts': return 'text/x-vcard'; break; + case 'sifcalendar': + case './sifcalendar': + return 'text/x-s4j-sife'; + break; + case 'sifcontacts': case './sifcontacts': return 'text/x-s4j-sifc';