diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2016-06-26 11:07:15 +0300 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2016-06-28 11:54:26 +0300 |
commit | eb79866efdb2dc3298691c1b7b413cad1da1f08d (patch) | |
tree | 3a57b8c1effe19c9039d975019897821f68ff311 /lib | |
parent | 440eb9e27c1107286aa0ca7decd51ba23cefe321 (diff) |
Fix path for shared documents
Diffstat (limited to 'lib')
-rw-r--r-- | lib/storage.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/storage.php b/lib/storage.php index 3c0cfad7..cf888ed9 100644 --- a/lib/storage.php +++ b/lib/storage.php @@ -141,10 +141,11 @@ class Storage { private static function processDocuments($rawDocuments){ $documents = array(); + $view = \OC\Files\Filesystem::getView(); foreach($rawDocuments as $rawDocument){ $document = array( 'fileid' => $rawDocument->getId(), - 'path' => $rawDocument->getInternalPath(), + 'path' => $view->getPath($rawDocument->getId()), 'name' => $rawDocument->getName(), 'mimetype' => $rawDocument->getMimetype(), 'mtime' => $rawDocument->getMTime() |