diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-08 19:57:07 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:25 +0200 |
commit | ed981294f11bd59733e0d121cbf737e16275b666 (patch) | |
tree | 8b13b3224a29db6e3aa64170154c6f2e1b941595 /apps/files_sharing/lib/api.php | |
parent | 27c5a978f91e7aa447a2acca040fd173baba53b9 (diff) | |
download | nextcloud-server-ed981294f11bd59733e0d121cbf737e16275b666.tar.gz nextcloud-server-ed981294f11bd59733e0d121cbf737e16275b666.zip |
fix share api tests
Diffstat (limited to 'apps/files_sharing/lib/api.php')
-rw-r--r-- | apps/files_sharing/lib/api.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php index de3c1cd2630..438d3cc4ba3 100644 --- a/apps/files_sharing/lib/api.php +++ b/apps/files_sharing/lib/api.php @@ -184,7 +184,6 @@ class Api { $receivedFrom = \OCP\Share::getItemSharedWithBySource($itemType, $file['fileid']); reset($share); $key = key($share); - $share[$key]['path'] = self::correctPath($share[$key]['path'], $path); if ($receivedFrom) { $share[$key]['received_from'] = $receivedFrom['uid_owner']; $share[$key]['received_from_displayname'] = \OCP\User::getDisplayName($receivedFrom['uid_owner']); @@ -531,15 +530,4 @@ class Api { } - /** - * @brief make sure that the path has the correct root - * - * @param string $path path returned from the share API - * @param string $folder current root folder - * @return string the correct path - */ - protected static function correctPath($path, $folder) { - return \OC_Filesystem::normalizePath('/' . $folder . '/' . basename($path)); - } - } |