mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
improve optimization for SharedStorage::instanceOfStorage(Common)
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
caebdc2a55
commit
f6d5eb9a75
1 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ namespace OCA\Files_Sharing;
|
|||
use OC\Files\Cache\FailedCache;
|
||||
use OC\Files\Cache\NullWatcher;
|
||||
use OC\Files\Cache\Watcher;
|
||||
use OC\Files\Storage\Common;
|
||||
use OCP\Files\Folder;
|
||||
use OCP\Files\Node;
|
||||
use OC\Files\Storage\FailedStorage;
|
||||
|
|
@ -182,7 +183,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
* @inheritdoc
|
||||
*/
|
||||
public function instanceOfStorage($class): bool {
|
||||
if ($class === '\OC\Files\Storage\Common') {
|
||||
if ($class === '\OC\Files\Storage\Common' || $class == Common::class) {
|
||||
return true;
|
||||
}
|
||||
if (in_array($class, ['\OC\Files\Storage\Home', '\OC\Files\ObjectStore\HomeObjectStoreStorage', '\OCP\Files\IHomeStorage'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue