|
|
@@ -254,8 +254,11 @@ class Manager implements IManager { |
|
|
|
* Add storage wrapper |
|
|
|
*/ |
|
|
|
public function setupStorage() { |
|
|
|
$encryptionWrapper = new EncryptionWrapper($this->arrayCache, $this, $this->logger); |
|
|
|
Filesystem::addStorageWrapper('oc_encryption', array($encryptionWrapper, 'wrapStorage'), 2); |
|
|
|
// If encryption is disabled and there are no loaded modules it makes no sense to load the wrapper |
|
|
|
if (!empty($this->encryptionModules) || $this->isEnabled()) { |
|
|
|
$encryptionWrapper = new EncryptionWrapper($this->arrayCache, $this, $this->logger); |
|
|
|
Filesystem::addStorageWrapper('oc_encryption', array($encryptionWrapper, 'wrapStorage'), 2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|