Merge pull request #30492 from nextcloud/bugfix/noid/fix-parameter-passing

Fix passing on the parameter
This commit is contained in:
Joas Schilling 2022-01-05 12:06:03 +01:00 committed by GitHub
commit f9b06def78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ class Scanner extends \OC\Files\Cache\Scanner {
/** {@inheritDoc} */
public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) {
if (!$this->storage->remoteIsOwnCloud()) {
return parent::scan($path, $recursive, $recursive, $lock);
return parent::scan($path, $recursive, $reuse, $lock);
}
$this->scanAll();