From b381c0c7a4b1d8f1d98d084eab7f8cc794955a4f Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 18 Aug 2010 21:34:20 +1200 Subject: [PATCH] Add optional parameter to 'simple' interface to allow action logging. --- inc/caldav-PUT-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index ad533001..a7104c50 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -963,7 +963,7 @@ EOSQL; * @param string $put_action_type INSERT or UPDATE depending on what we are to do * @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); $ic = new iCalComponent( $caldav_data ); @@ -977,7 +977,7 @@ function simple_write_resource( $path, $caldav_data, $put_action_type ) { $collection = $qry->Fetch(); $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; }