diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-11-08 12:57:28 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-12 16:15:43 +0100 |
commit | 32a703ab3643842d3262fcc8c6ac014c3e54d8ea (patch) | |
tree | 308797a77a829d12c67852b90a2c0bfc5358bc4a /lib/private/files/storage | |
parent | a745901d50c67728c0a8b7f0a8820ebd6992bad6 (diff) | |
download | nextcloud-server-32a703ab3643842d3262fcc8c6ac014c3e54d8ea.tar.gz nextcloud-server-32a703ab3643842d3262fcc8c6ac014c3e54d8ea.zip |
Do not use -1 as the size for the root folder of the home storage
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r-- | lib/private/files/storage/common.php | 10 | ||||
-rw-r--r-- | lib/private/files/storage/home.php | 7 |
2 files changed, 12 insertions, 5 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index a5b79f0e967..3943d667c35 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -21,11 +21,11 @@ namespace OC\Files\Storage; */ abstract class Common implements \OC\Files\Storage\Storage { - private $cache; - private $scanner; - private $permissioncache; - private $watcher; - private $storageCache; + protected $cache; + protected $scanner; + protected $permissioncache; + protected $watcher; + protected $storageCache; public function __construct($parameters) { } diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php index bf1d6017cbf..22753519ad3 100644 --- a/lib/private/files/storage/home.php +++ b/lib/private/files/storage/home.php @@ -27,4 +27,11 @@ class Home extends Local { public function getId() { return 'home::' . $this->user->getUID(); } + + public function getCache($path = '') { + if (!isset($this->cache)) { + $this->cache = new \OC\Files\Cache\HomeCache($this); + } + return $this->cache; + } } |