diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-30 13:23:32 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-30 13:23:32 +0300 |
commit | 761a0b252cce40b098a62c29d74a124716683b0c (patch) | |
tree | 0a5b929231096e5e538a18bc814dc300e3295654 /apps | |
parent | da0ee2ce3a74bb02720cb68d9a56a1a5011b6e43 (diff) | |
parent | 35c32ca721bd9541ac464689fb0c1c0876bb4a40 (diff) |
Merge pull request #24839 from owncloud/shared-storage-local-9
[9.0] Improve isLocal performance for SharedStorage
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 8f4888d20e2..502f2bfbae6 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -737,9 +737,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { public function isLocal() { $this->init(); - $ownerPath = $this->ownerView->getPath($this->share['item_source']); - list($targetStorage) = $this->ownerView->resolvePath($ownerPath); - return $targetStorage->isLocal(); + return $this->sourceStorage->isLocal(); } public function getSourceStorage() { |