gunnar: server/pear/Horde_iCalendar/patches/Horde_iCalendar-0.1.0dev20091215 t_SyncML_HK_GW_CombinedFixes.diff, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Sat Jan 23 00:09:39 CET 2010
Author: gunnar
Update of /kolabrepository/server/pear/Horde_iCalendar/patches/Horde_iCalendar-0.1.0dev20091215
In directory doto:/tmp/cvs-serv24892/pear/Horde_iCalendar/patches/Horde_iCalendar-0.1.0dev20091215
Added Files:
t_SyncML_HK_GW_CombinedFixes.diff
Log Message:
Distribute the remaining set of patches on the corresponding packages. Remove obsolete patches.
--- NEW FILE: t_SyncML_HK_GW_CombinedFixes.diff ---
diff --git a/horde-webmail/lib/Horde/iCalendar.php b/horde-webmail/lib/Horde/iCalendar.php
index decf66a..4b7143e 100644
--- a/a/horde-webmail/iCalendar.php
+++ b/a/horde-webmail/iCalendar.php
@@ -155,6 +155,41 @@ class Horde_iCalendar {
}
/**
+ * Sets an attribute empty.
+ *
+ * @param string $name The name of the attribute.
+ * @param array $params Array containing any addition parameters for
+ * this attribute.
+ * @param boolean $append True to append the attribute, False to replace
+ * the first matching attribute found.
+ */
+ function setAttributeEmpty($name, $params = array(), $append = false)
+ {
+ switch ($name) {
+ case 'EXDATE':
+ case 'RDATE':
+ $this->setAttribute($name, array(), $params, $append, true);
+ break;
+ case 'COMPLETED':
+ case 'CREATED':
+ case 'DCREATED':
+ case 'LAST-MODIFIED':
+ case 'DTEND':
+ case 'DTSTART':
+ case 'DTSTAMP':
+ case 'DUE':
+ case 'AALARM':
+ case 'RECURRENCE-ID':
+ /* These values expect a date and there is no sensible
+ default so we better leave them alone for now. */
+ break;
+ default:
+ $this->setAttribute($name, '', $params, $append);
+ break;
+ }
+ }
+
+ /**
* Sets parameter(s) for an (already existing) attribute. The
* parameter set is merged into the existing set.
*
More information about the commits
mailing list