[Pkg-owncloud-commits] [owncloud] 08/131: fix getting mount points when passing a path to the files:scan command
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 15:58:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.1.1
in repository owncloud.
commit 478fe752e7445b1dc9f5b37237630cfeeaff364b
Author: Robin Appelman <icewind at owncloud.com>
Date: Mon Jun 22 14:02:38 2015 +0200
fix getting mount points when passing a path to the files:scan command
---
lib/private/files/utils/scanner.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php
index 23a9e26..3d68eb5 100644
--- a/lib/private/files/utils/scanner.php
+++ b/lib/private/files/utils/scanner.php
@@ -76,11 +76,10 @@ class Scanner extends PublicEmitter {
//TODO: move to the node based fileapi once that's done
\OC_Util::tearDownFS();
\OC_Util::setupFS($this->user);
- $absolutePath = Filesystem::getView()->getAbsolutePath($dir);
$mountManager = Filesystem::getMountManager();
- $mounts = $mountManager->findIn($absolutePath);
- $mounts[] = $mountManager->find($absolutePath);
+ $mounts = $mountManager->findIn($dir);
+ $mounts[] = $mountManager->find($dir);
$mounts = array_reverse($mounts); //start with the mount of $dir
return $mounts;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list