diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-25 12:39:21 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-25 12:39:21 +0200 |
commit | f91a4c89cad156f5724449a2c7388abfcf279dc8 (patch) | |
tree | 56ad790ebc0e78c93ef12c176fff239b5d0cb6cd /apps | |
parent | c5b8963b18f1dabf248d025789c04fe82d66e3f2 (diff) | |
download | nextcloud-server-f91a4c89cad156f5724449a2c7388abfcf279dc8.tar.gz nextcloud-server-f91a4c89cad156f5724449a2c7388abfcf279dc8.zip |
adding storage_mtime handling to SharedCache
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index 123268e240a..3a8e703740f 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -99,9 +99,13 @@ class Shared_Cache extends Cache { $data['fileid'] = (int)$data['fileid']; $data['size'] = (int)$data['size']; $data['mtime'] = (int)$data['mtime']; + $data['storage_mtime'] = (int)$data['storage_mtime']; $data['encrypted'] = (bool)$data['encrypted']; $data['mimetype'] = $this->getMimetype($data['mimetype']); $data['mimepart'] = $this->getMimetype($data['mimepart']); + if ($data['storage_mtime'] == 0) { + $data['storage_mtime'] = $data['mtime']; + } return $data; } return false; |