Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2016-06-26 11:07:15 +0300
committerPranav Kant <pranavk@collabora.co.uk>2016-06-28 11:54:26 +0300
commiteb79866efdb2dc3298691c1b7b413cad1da1f08d (patch)
tree3a57b8c1effe19c9039d975019897821f68ff311 /lib
parent440eb9e27c1107286aa0ca7decd51ba23cefe321 (diff)
Fix path for shared documents
Diffstat (limited to 'lib')
-rw-r--r--lib/storage.php3
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()