Resolve path for reshares. Closes #66

pull/1/head
Victor Dubiniuk 11 years ago
parent 9bfc7e5058
commit 2ee654c1ea

@ -164,7 +164,11 @@ class File {
$origins = array();
if (is_array($shares)){
foreach ($shares as $share){
$origins[] = \OCP\Share::resolveReShare($share);
$origin = \OCP\Share::resolveReShare($share);
if (!isset($origin['path']) && isset($origin['file_target'])){
$origin['path'] = 'files/' . $origin['file_target'];
}
$origins[] = $origin;
}
}
return $origins;

Loading…
Cancel
Save