mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Rename caldav-PUT.php to reflect it's calendaring association.
This commit is contained in:
parent
7e0b88ed77
commit
1cf247cf39
@ -113,8 +113,7 @@ switch ( $request->method ) {
|
||||
$request->CoerceContentType();
|
||||
switch( $request->content_type ) {
|
||||
case 'text/calendar':
|
||||
/** use original DAViCal 'PUT' code which will be rewritten */
|
||||
include('caldav-PUT.php');
|
||||
include('caldav-PUT-vcalendar.php');
|
||||
break;
|
||||
case 'text/vcard':
|
||||
case 'text/x-vcard':
|
||||
|
||||
@ -92,7 +92,7 @@ if ( $dav_resource->Exists() ) {
|
||||
$put_action_type = ($dav_resource->Exists() ? 'UPDATE' : 'INSERT');
|
||||
$collection = $dav_resource->GetParentContainer();
|
||||
|
||||
write_resource( $dav_resource->bound_from(), $request->raw_post, $collection,
|
||||
write_resource( $dav_resource, $request->raw_post, $collection,
|
||||
$session->user_no, $etag, $ic, $put_action_type, true, true );
|
||||
|
||||
header(sprintf('ETag: "%s"', $etag) );
|
||||
Loading…
x
Reference in New Issue
Block a user