fix cacheentry return wrong storage id

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-12-13 12:50:17 +01:00
parent bbe24d29ca
commit 86473306f3
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
2 changed files with 2 additions and 1 deletions

View File

@ -163,6 +163,7 @@ class Cache implements ICache {
$data['storage_mtime'] = (int)$data['storage_mtime'];
$data['encryptedVersion'] = (int)$data['encrypted'];
$data['encrypted'] = (bool)$data['encrypted'];
$data['storage_id'] = $data['storage'];
$data['storage'] = $storageId;
$data['mimetype'] = $mimetypeLoader->getMimetypeById($data['mimetype']);
$data['mimepart'] = $mimetypeLoader->getMimetypeById($data['mimepart']);

View File

@ -62,7 +62,7 @@ class CacheEntry implements ICacheEntry, \ArrayAccess {
}
public function getStorageId() {
return $this->data['storage'];
return $this->data['storage_id'];
}