From 2adc7a51ad0e3893efc9aac852e3b80d75d9a65d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 15 Jun 2015 19:52:17 -0700 Subject: photo upload: pass in the contact_allow and resource_id via include/attach.php --- include/RedDAV/RedDirectory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/RedDAV/RedDirectory.php') diff --git a/include/RedDAV/RedDirectory.php b/include/RedDAV/RedDirectory.php index dba857cdc..c41056ac9 100644 --- a/include/RedDAV/RedDirectory.php +++ b/include/RedDAV/RedDirectory.php @@ -298,7 +298,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota { if($is_photo) { require_once('include/photos.php'); - $args = array( 'data' => @file_get_contents($f)); + $args = array( 'data' => @file_get_contents($f), 'resource_id' => $hash); $p = photo_upload($c[0],get_app()->get_observer(),$args); } -- cgit v1.2.3