Skip to content
Snippets Groups Projects
Commit 803f86e0 authored by Robin Appelman's avatar Robin Appelman
Browse files

dont try to use the filesystem when it isnt setup yet

parent ffecc3e4
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
require_once( 'lib_share.php' );
if (!OC_Filesystem::is_dir('/Shared')) {
if (OC_Filesystem::$loaded and !OC_Filesystem::is_dir('/Shared')) {
OC_Filesystem::mkdir('/Shared');
}
OC_Filesystem::mount('OC_Filestorage_Shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared'),'/'.OC_User::getUser().'/files/Shared/');
......
......@@ -47,6 +47,7 @@ class OC_Filesystem{
static private $storages=array();
static private $mounts=array();
static private $storageTypes=array();
public static $loaded=false;
private $fakeRoot='';
static private $defaultInstance;
......@@ -200,6 +201,7 @@ class OC_Filesystem{
return false;
}
self::$defaultInstance=new OC_FilesystemView($root);
self::$loaded=true;
}
/**
......
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