summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-10-09 15:38:40 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-10-10 14:47:41 +0200
commit527e1d001f7ef2d7b624dfa2df5efea0382e84f1 (patch)
treeffacb69994867e6cef2912c1b6fe891cb5293204
parent3431d547a9834dce70fab8a835862bb276c8575b (diff)
downloadnextcloud-server-527e1d001f7ef2d7b624dfa2df5efea0382e84f1.tar.gz
nextcloud-server-527e1d001f7ef2d7b624dfa2df5efea0382e84f1.zip
try to get path from filesystem
-rw-r--r--apps/files_sharing/lib/share/file.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php
index dacdb9308be..a5b4e75bceb 100644
--- a/apps/files_sharing/lib/share/file.php
+++ b/apps/files_sharing/lib/share/file.php
@@ -49,6 +49,11 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
$path = $this->path;
$this->path = null;
return $path;
+ } else {
+ $path = \OC\Files\Filesystem::getPath($itemSource);
+ if ($path) {
+ return $path;
+ }
}
return false;
}