mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Finially tracked down what resourcetype RFC2518 specifies for resources...
This commit is contained in:
parent
b7c5bcee59
commit
9be75391d3
@ -202,10 +202,10 @@ function item_to_xml( $item ) {
|
||||
$prop->NewElement("creationdate", $item->created );
|
||||
}
|
||||
/**
|
||||
* What resource type should we return for a calendar resource?
|
||||
* Non-collections should return an empty resource type, it appears from RFC2518 8.1.2
|
||||
*/
|
||||
if ( isset($attribute_list['RESOURCETYPE']) ) {
|
||||
$prop->NewElement("resourcetype", new XMLElement("calendar", false, array("xmlns" => "urn:ietf:params:xml:ns:caldav")) );
|
||||
$prop->NewElement("resourcetype");
|
||||
}
|
||||
if ( isset($attribute_list['DISPLAYNAME']) ) {
|
||||
$prop->NewElement("displayname", $item->dav_displayname );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user