photo upload: pass in the contact_allow and resource_id via include/attach.php
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ class RedFile extends DAV\Node implements DAV\IFile {
|
||||
);
|
||||
|
||||
if($is_photo) {
|
||||
$args = array( 'data' => @file_get_contents($fname));
|
||||
$args = array( 'data' => @file_get_contents($fname), 'resource_id' => $this->data['hash']);
|
||||
$p = photo_upload($c[0],$this->auth->observer,$args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user