From 9e32e0730644a4340b2f88b0d8750fd1f8e8903a Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 29 Aug 2012 17:25:37 +0200 Subject: [PATCH] Fix OC_Cache_File --- lib/cache/file.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cache/file.php b/lib/cache/file.php index a51f0d68f8..ed5212bc3d 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;