From 7ef8f6d352811e635bc6cf99b56d9482a54eb791 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 17 Apr 2014 15:54:45 +0200 Subject: always allow to rename the share mount point --- apps/files_sharing/lib/cache.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files_sharing/lib/cache.php') diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index 4a2f0ff08b2..67a0410ef76 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -91,6 +91,9 @@ class Shared_Cache extends Cache { $data = $cache->get($this->files[$file]); $data['displayname_owner'] = \OC_User::getDisplayName($this->storage->getSharedFrom()); $data['path'] = $path; + if ($file === '') { + $data['is_share_mount_point'] = true; + } return $data; } } else { @@ -123,6 +126,7 @@ class Shared_Cache extends Cache { } if (isset($mountPoint)) { $data['path'] = 'files/' . $mountPoint; + $data['is_share_mount_point'] = true; } return $data; } -- cgit v1.2.3