summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-24 20:39:20 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-24 21:12:32 +0200
commita80e0403a15af4d68123d0662f80e044afc4cada (patch)
tree21a26fd8b7975874afbb27f6961fc944ed157c91 /lib/files.php
parent7aca730f7189a82163374a944d942c4cb1e594b4 (diff)
downloadnextcloud-server-a80e0403a15af4d68123d0662f80e044afc4cada.tar.gz
nextcloud-server-a80e0403a15af4d68123d0662f80e044afc4cada.zip
Fix getting individual shared file information
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php
index 360614caec9..052d7988058 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -47,7 +47,8 @@ class OC_Files {
$info = OCP\Share::getItemsSharedWith('file', OC_Share_Backend_File::FORMAT_FILE_APP_ROOT);
}
else {
- $info = OCP\Share::getItemSharedWith('file', '/'.$name, OC_Share_Backend_File::FORMAT_FILE_APP);
+ $path = substr($path, 7);
+ $info = OCP\Share::getItemSharedWith('file', $path, OC_Share_Backend_File::FORMAT_FILE_APP);
}
$info = $info[0];
}