diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-29 17:25:37 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-29 20:29:43 +0200 |
commit | 9e32e0730644a4340b2f88b0d8750fd1f8e8903a (patch) | |
tree | 97740c08d87eb3576cd79b4fd116ee105f246fe6 /lib | |
parent | 0365f8fd017bef03c832d4c18224c305cdc0b81f (diff) | |
download | nextcloud-server-9e32e0730644a4340b2f88b0d8750fd1f8e8903a.tar.gz nextcloud-server-9e32e0730644a4340b2f88b0d8750fd1f8e8903a.zip |
Fix OC_Cache_File
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cache/file.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cache/file.php b/lib/cache/file.php index a51f0d68f82..ed5212bc3d7 100644 --- a/lib/cache/file.php +++ b/lib/cache/file.php @@ -10,8 +10,8 @@ class OC_Cache_File{ protected static $storage; protected function getStorage() { - if (isset(self::$storage)) { - return self::$storage; + if (isset($this->storage)) { + return $this->storage; } if(OC_User::isLoggedIn()){ $subdir = 'cache'; @@ -19,8 +19,8 @@ class OC_Cache_File{ if(!$view->file_exists($subdir)) { $view->mkdir($subdir); } - self::$storage = new OC_FilesystemView('/'.OC_User::getUser().'/'.$subdir); - return self::$storage; + $this->storage = new OC_FilesystemView('/'.OC_User::getUser().'/'.$subdir); + return $this->storage; }else{ OC_Log::write('core','Can\'t get cache storage, user not logged in', OC_Log::ERROR); return false; |