summaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-19 19:49:41 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-01-19 19:49:41 -0600
commita4ad8af6e3f0247db6f74dfcddc144e91f61fe84 (patch)
treeff957103206534edb0b29756b69f0dfaeadbf538 /lib/private/User
parent48a3f2a8a2d6217c9938c3719fb752633de7c082 (diff)
downloadnextcloud-server-a4ad8af6e3f0247db6f74dfcddc144e91f61fe84.tar.gz
nextcloud-server-a4ad8af6e3f0247db6f74dfcddc144e91f61fe84.zip
Add proper default value for datadir
* better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 4b37efe0705..c37bb59028e 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -267,7 +267,7 @@ class User implements IUser {
if ($this->backend->implementsActions(Backend::GET_HOME) and $home = $this->backend->getHome($this->uid)) {
$this->home = $home;
} elseif ($this->config) {
- $this->home = $this->config->getSystemValue('datadirectory') . '/' . $this->uid;
+ $this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/' . $this->uid;
} else {
$this->home = \OC::$SERVERROOT . '/data/' . $this->uid;
}