Fix if_addressbook for /

This commit is contained in:
Andrew McMillan 2010-05-12 22:12:43 +12:00
parent ad4d733e57
commit 8f22d87a82

View File

@ -407,6 +407,7 @@ EOSQL;
'dav_name' => '/',
'dav_etag' => md5($c->system_name),
'is_calendar' => 'f',
'is_addressbook' => 'f',
'is_principal' => 'f',
'user_no' => 0,
'dav_displayname' => $c->system_name,
@ -493,6 +494,15 @@ EOSQL;
)
);
}
if ( isset($this->collection) && $this->collection->is_addressbook ) {
$this->supported_reports = array_merge(
$this->supported_reports,
array(
// 'urn:ietf:params:xml:ns:carddav:addressbook-query' => '',
'urn:ietf:params:xml:ns:carddav:addressbook-multiget' => ''
)
);
}
/**