From 2ee654c1ea992738c278bea57b0f24cc51533182 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 17 Oct 2013 00:04:25 +0300 Subject: [PATCH] Resolve path for reshares. Closes #66 --- lib/file.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/file.php b/lib/file.php index df66d7c3..31e2a523 100644 --- a/lib/file.php +++ b/lib/file.php @@ -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;