diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-02 12:33:17 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-02 12:33:17 +0200 |
commit | 50a31fa8f905c3f9483137bc7b1e57cbf950d2c2 (patch) | |
tree | 1a4a588a385ea921b41c8ea9f90b94b2e8822978 /lib/private/encryption | |
parent | 9a4040c7ca2c0e4fc3f213ba3f6144e80f687754 (diff) | |
download | nextcloud-server-50a31fa8f905c3f9483137bc7b1e57cbf950d2c2.tar.gz nextcloud-server-50a31fa8f905c3f9483137bc7b1e57cbf950d2c2.zip |
Add unit tests for wrapStorage
Diffstat (limited to 'lib/private/encryption')
-rw-r--r-- | lib/private/encryption/util.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/encryption/util.php b/lib/private/encryption/util.php index d233b715f88..16c09cd26b3 100644 --- a/lib/private/encryption/util.php +++ b/lib/private/encryption/util.php @@ -26,7 +26,6 @@ use OC\Encryption\Exceptions\EncryptionHeaderKeyExistsException; use OC\Encryption\Exceptions\EncryptionHeaderToLargeException; use OC\Encryption\Exceptions\ModuleDoesNotExistsException; use OC\Files\Filesystem; -use OC\Files\Storage\Shared; use OC\Files\Storage\Wrapper\Encryption; use OC\Files\View; use OCP\Encryption\IEncryptionModule; @@ -404,7 +403,7 @@ class Util { 'mountPoint' => $mountPoint, 'mount' => $mount]; - if (!($storage instanceof Shared)) { + if (!$storage->instanceOfStorage('OC\Files\Storage\Shared')) { $manager = \OC::$server->getEncryptionManager(); $user = \OC::$server->getUserSession()->getUser(); $logger = \OC::$server->getLogger(); |