Merge pull request #30522 from nextcloud/backport/30492/stable23

[stable23] Fix passing on the parameter
This commit is contained in:
Joas Schilling 2022-01-07 10:49:55 +01:00 committed by GitHub
commit deeee36132
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();