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 10:21:19 +0300
committerPranav Kant <pranavk@collabora.co.uk>2016-06-28 11:54:26 +0300
commit440eb9e27c1107286aa0ca7decd51ba23cefe321 (patch)
treeb8ce10b3d2dc5e438f2c90e8d94734fbc94638c6 /lib
parent30f732330402580a074c798144feb0df3b4e7540 (diff)
Add missing mtime field to processed 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 c7fa35b0..3c0cfad7 100644
--- a/lib/storage.php
+++ b/lib/storage.php
@@ -146,7 +146,8 @@ class Storage {
'fileid' => $rawDocument->getId(),
'path' => $rawDocument->getInternalPath(),
'name' => $rawDocument->getName(),
- 'mimetype' => $rawDocument->getMimetype()
+ 'mimetype' => $rawDocument->getMimetype(),
+ 'mtime' => $rawDocument->getMTime()
);
array_push($documents, $document);