]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #2196 from nextcloud/cache-owner-displayname
authorLukas Reschke <lukas@statuscode.ch>
Fri, 18 Nov 2016 12:51:24 +0000 (13:51 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Nov 2016 12:51:24 +0000 (13:51 +0100)
cache the displayname of the share owner

1  2 
apps/files_sharing/lib/Cache.php

index 49765a7aab5566d1dd697760b94488ae62442175,038be1c3fea57352c4e11cfaae05cab376938862..bc10ddbd94f0144e4e6351a331d4af4d5fda51c1
@@@ -47,17 -52,27 +47,19 @@@ class Cache extends CacheJail 
         */
        private $sourceRootInfo;
  
 -      /**
 -       * @var \OCP\Files\Cache\ICache
 -       */
 -      private $sourceCache;
 -
        private $rootUnchanged = true;
  
+       private $ownerDisplayName;
        /**
         * @param \OCA\Files_Sharing\SharedStorage $storage
 -       * @param IStorage $sourceStorage
         * @param ICacheEntry $sourceRootInfo
         */
 -      public function __construct($storage, IStorage $sourceStorage, ICacheEntry $sourceRootInfo) {
 +      public function __construct($storage, ICacheEntry $sourceRootInfo) {
                $this->storage = $storage;
 -              $this->sourceStorage = $sourceStorage;
                $this->sourceRootInfo = $sourceRootInfo;
 -              $this->sourceCache = $sourceStorage->getCache();
                parent::__construct(
 -                      $this->sourceCache,
 +                      null,
                        $this->sourceRootInfo->getPath()
                );
        }