mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-22 02:04:19 +00:00
Add optional parameter to 'simple' interface to allow action logging.
This commit is contained in:
parent
517b8d8d0f
commit
b381c0c7a4
@ -963,7 +963,7 @@ EOSQL;
|
|||||||
* @param string $put_action_type INSERT or UPDATE depending on what we are to do
|
* @param string $put_action_type INSERT or UPDATE depending on what we are to do
|
||||||
* @return boolean True for success, false for failure.
|
* @return boolean True for success, false for failure.
|
||||||
*/
|
*/
|
||||||
function simple_write_resource( $path, $caldav_data, $put_action_type ) {
|
function simple_write_resource( $path, $caldav_data, $put_action_type, $write_action_log = false ) {
|
||||||
|
|
||||||
$etag = md5($caldav_data);
|
$etag = md5($caldav_data);
|
||||||
$ic = new iCalComponent( $caldav_data );
|
$ic = new iCalComponent( $caldav_data );
|
||||||
@ -977,7 +977,7 @@ function simple_write_resource( $path, $caldav_data, $put_action_type ) {
|
|||||||
$collection = $qry->Fetch();
|
$collection = $qry->Fetch();
|
||||||
$user_no = $collection->user_no;
|
$user_no = $collection->user_no;
|
||||||
|
|
||||||
return write_resource( $user_no, $path, $caldav_data, $collection->collection_id, $user_no, $etag, $ic, $put_action_type, false, false );
|
return write_resource( $user_no, $path, $caldav_data, $collection->collection_id, $user_no, $etag, $ic, $put_action_type, false, $write_action_log );
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user