diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-02 14:59:13 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-14 12:54:42 +0100 |
commit | 6d321f5f6b4e22f0c8124572662361a1f53e7c3a (patch) | |
tree | aeea16e4d4174e6491a7de9ad0d207a3cd83c927 /lib/private/files/storage/wrapper | |
parent | 5d0451b84862c2c905b7d1a8d5943ac53d87f990 (diff) | |
download | nextcloud-server-6d321f5f6b4e22f0c8124572662361a1f53e7c3a.tar.gz nextcloud-server-6d321f5f6b4e22f0c8124572662361a1f53e7c3a.zip |
Return a class from cache operations instead of an array
Diffstat (limited to 'lib/private/files/storage/wrapper')
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index fda28079d0f..69438ef0c7c 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -28,6 +28,7 @@ namespace OC\Files\Storage\Wrapper; use OC\Encryption\Exceptions\ModuleDoesNotExistsException; use OC\Encryption\Update; use OC\Encryption\Util; +use OC\Files\Cache\CacheEntry; use OC\Files\Filesystem; use OC\Files\Mount\Manager; use OC\Files\Storage\LocalTempFileTrait; @@ -123,13 +124,14 @@ class Encryption extends Wrapper { public function filesize($path) { $fullPath = $this->getFullPath($path); + /** @var CacheEntry $info */ $info = $this->getCache()->get($path); if (isset($this->unencryptedSize[$fullPath])) { $size = $this->unencryptedSize[$fullPath]; // update file cache $info['encrypted'] = true; $info['size'] = $size; - $this->getCache()->put($path, $info); + $this->getCache()->put($path, $info->getData()); return $size; } |