aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-05 21:45:41 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:48 +0100
commit501678f981cf8e320d11cf1a780aefeae1537050 (patch)
treeccbee2d092b80a7e41c7e4f7ca414d1f69071ce7 /lib/util.php
parentf1cbb9effc7e0672dd9dd6fa810aba36c5749898 (diff)
downloadnextcloud-server-501678f981cf8e320d11cf1a780aefeae1537050.tar.gz
nextcloud-server-501678f981cf8e320d11cf1a780aefeae1537050.zip
always mount the root filesystem, sometimes we need the filesystem when not logged in
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 1b1e29b6749..3329789de92 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -35,9 +35,9 @@ class OC_Util {
$user = OC_User::getUser();
}
+ //first set up the local "root" storage
+ OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT),'/');
if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem
- //first set up the local "root" storage
- OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT),'/');
OC::$CONFIG_DATADIRECTORY = $CONFIG_DATADIRECTORY_ROOT."/$user/$root";
if( !is_dir( OC::$CONFIG_DATADIRECTORY )){