From 50a31fa8f905c3f9483137bc7b1e57cbf950d2c2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 2 Jun 2015 12:33:17 +0200 Subject: Add unit tests for wrapStorage --- lib/private/encryption/util.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/private') 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(); -- cgit v1.2.3