From 00fb075f22ae280f07bccd67a5df3ab076481d5c Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 1 Nov 2007 14:49:34 +1300 Subject: [PATCH] Some of the principal properties are available anywhere. --- inc/caldav-PROPFIND.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index 6ce90b16..cf61d0c8 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -366,13 +366,10 @@ function item_to_xml( $item ) { $prop->NewElement("getetag", '"'.$item->dav_etag.'"' ); } - if ( isset($attribute_list['PRINCIPAL-URL'] ) ) { - $prop->NewElement("principal-url", $request->principal->url ); - } - - if ( isset($attribute_list['CALENDAR-HOME-SET'] ) ) { - $prop->NewElement("C:calendar-home-set", $request->principal->calendar_home_set ); - } + /** + * Then look at any properties related to the principal + */ + add_principal_properties( $prop ); if ( isset($attribute_list['ACL']) ) { /**