From eb79866efdb2dc3298691c1b7b413cad1da1f08d Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Sun, 26 Jun 2016 13:37:15 +0530 Subject: [PATCH] Fix path for shared documents --- lib/storage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()