Skip to content
Snippets Groups Projects
Commit 9e32e073 authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix OC_Cache_File

parent 0365f8fd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment