From b02b6d3c236bb015e41447c686acf7167ad037e9 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 4 Apr 2014 17:45:53 +0200 Subject: no exception for the root of the mount point (formerly Shared/), just get the file cache information from the cache --- apps/files_sharing/lib/cache.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (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 c509ec24576..becd436f798 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -84,16 +84,7 @@ class Shared_Cache extends Cache { * @return array */ public function get($file) { - if ($file == '') { - $data = \OCP\Share::getItemsSharedWith('file', \OC_Share_Backend_File::FORMAT_FILE_APP_ROOT); - $etag = \OCP\Config::getUserValue(\OCP\User::getUser(), 'files_sharing', 'etag'); - if (!isset($etag)) { - $etag = $this->storage->getETag(''); - \OCP\Config::setUserValue(\OCP\User::getUser(), 'files_sharing', 'etag', $etag); - } - $data['etag'] = $etag; - return $data; - } else if (is_string($file)) { + if (is_string($file)) { if ($cache = $this->getSourceCache($file)) { return $cache->get($this->files[$file]); } -- cgit v1.2.3