]> source.dussan.org Git - nextcloud-server.git/commitdiff
try to get path from filesystem
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 9 Oct 2014 13:38:40 +0000 (15:38 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 10 Oct 2014 12:47:41 +0000 (14:47 +0200)
apps/files_sharing/lib/share/file.php

index dacdb9308be7b72298aa3b953f8cc5d4ec52ebd2..a5b4e75bcebb89efcbea1bd2cb71eca7e9a103c0 100644 (file)
@@ -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;
        }