diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-20 23:48:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 23:48:15 +0200 |
commit | 2799b0a821a434b9db68952b85105f6281e63faa (patch) | |
tree | 1af301f54116b1137b9331332203966ee1e3c4f4 /lib/private/legacy/util.php | |
parent | 1dd7072b4183d81d9323a42dfdad025f0bfe53d8 (diff) | |
parent | fca8bd44ab3f8f694c82e2ba5401593e0e26acdb (diff) | |
download | nextcloud-server-2799b0a821a434b9db68952b85105f6281e63faa.tar.gz nextcloud-server-2799b0a821a434b9db68952b85105f6281e63faa.zip |
Merge pull request #1835 from nextcloud/downstream-24948
Move OC\Files\Storage\Shared to the right namespace
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r-- | lib/private/legacy/util.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index b8f3a93ba50..b6c3b375396 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -165,15 +165,14 @@ class OC_Util { // install storage availability wrapper, before most other wrappers \OC\Files\Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, $storage) { - /** @var \OCP\Files\Storage $storage */ - if (!$storage->instanceOfStorage('\OC\Files\Storage\Shared') && !$storage->isLocal()) { + if (!$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) { return new \OC\Files\Storage\Wrapper\Availability(['storage' => $storage]); } return $storage; }); \OC\Files\Filesystem::addStorageWrapper('oc_encoding', function ($mountPoint, \OCP\Files\Storage $storage, \OCP\Files\Mount\IMountPoint $mount) { - if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OC\Files\Storage\Shared') && !$storage->isLocal()) { + if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) { return new \OC\Files\Storage\Wrapper\Encoding(['storage' => $storage]); } return $storage; |