Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-30 13:23:32 +0300
committerVincent Petry <pvince81@owncloud.com>2016-05-30 13:23:32 +0300
commit761a0b252cce40b098a62c29d74a124716683b0c (patch)
tree0a5b929231096e5e538a18bc814dc300e3295654 /apps
parentda0ee2ce3a74bb02720cb68d9a56a1a5011b6e43 (diff)
parent35c32ca721bd9541ac464689fb0c1c0876bb4a40 (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.php4
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() {