summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/external/storage.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-09 10:36:45 +0100
committerLukas Reschke <lukas@owncloud.com>2016-03-09 16:01:53 +0100
commit80b91264e16e6429aa7236d69f419a509dfb2cde (patch)
tree475c90441f52509e833b7fc9df57bc7779fb9f91 /apps/files_sharing/lib/external/storage.php
parent0cc53ee06dafbd3984bbf1d554585a5731b500a9 (diff)
downloadnextcloud-server-80b91264e16e6429aa7236d69f419a509dfb2cde.tar.gz
nextcloud-server-80b91264e16e6429aa7236d69f419a509dfb2cde.zip
Delay check till scanner is used
Fixes https://github.com/owncloud/core/issues/22973 and https://github.com/owncloud/core/issues/22987
Diffstat (limited to 'apps/files_sharing/lib/external/storage.php')
-rw-r--r--apps/files_sharing/lib/external/storage.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 16fd84bdba5..8fe7af66044 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -136,9 +136,6 @@ class Storage extends DAV implements ISharedStorage {
if (!$storage) {
$storage = $this;
}
- if(!$this->remoteIsOwnCloud()) {
- return parent::getScanner($path, $storage);
- }
if (!isset($this->scanner)) {
$this->scanner = new Scanner($storage);
}
@@ -266,7 +263,7 @@ class Storage extends DAV implements ISharedStorage {
*
* @return bool
*/
- private function remoteIsOwnCloud() {
+ public function remoteIsOwnCloud() {
if(defined('PHPUNIT_RUN') || !$this->testRemoteUrl($this->getRemote() . '/status.php')) {
return false;
}