aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-08-16 19:56:49 +0200
committerRobin Appelman <robin@icewind.nl>2018-08-27 16:25:42 +0200
commitc897e2af8e43f37dda08d99a1a3460b6aa90da67 (patch)
treeb1f347620aa9868aeb808b9a2d931c48d2cd18b2 /apps
parentf2152ecda9536659b0149fab4811f366b4cd7c37 (diff)
downloadnextcloud-server-c897e2af8e43f37dda08d99a1a3460b6aa90da67.tar.gz
nextcloud-server-c897e2af8e43f37dda08d99a1a3460b6aa90da67.zip
more efficient way to detect added and removed mounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/SharedMount.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php
index ba3efaf3f87..bf274f2c2f6 100644
--- a/apps/files_sharing/lib/SharedMount.php
+++ b/apps/files_sharing/lib/SharedMount.php
@@ -140,11 +140,7 @@ class SharedMount extends MountPoint implements MoveableMount {
while ($view->file_exists($path) || isset($mountpoints[$absolutePath])) {
$path = Filesystem::normalizePath($dir . '/' . $name . ' (' . $i . ')' . $ext);
$absolutePath = $this->recipientView->getAbsolutePath($path) . '/';
- var_dump($absolutePath);
$i++;
- if ($i > 10) {
- return $path;
- }
}
return $path;