Merge pull request #24839 from owncloud/shared-storage-local-9

[9.0] Improve isLocal performance for SharedStorage
This commit is contained in:
Vincent Petry 2016-05-30 12:23:32 +02:00
commit 761a0b252c
1 changed files with 1 additions and 3 deletions

View File

@ -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() {