diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-08-26 22:24:08 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-08-26 22:24:08 +0200 |
commit | cd5c217c0d006ec82cdbd8c952b753ecb0132ac7 (patch) | |
tree | a480377c5dab65f0bd623f82a79e047f5fd4c049 /lib/filesystem.php | |
parent | 045c94ec3e3fe0bd3cbb05a46b3c797e13050ac3 (diff) | |
download | nextcloud-server-cd5c217c0d006ec82cdbd8c952b753ecb0132ac7.tar.gz nextcloud-server-cd5c217c0d006ec82cdbd8c952b753ecb0132ac7.zip |
use OC_User::getHome in lib/filesystem.php
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index 82fbf11afdf..fbb02900456 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -350,7 +350,7 @@ class OC_Filesystem{ * @return string */ static public function getLocalPath($path) { - $datadir = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser().'/files'; + $datadir = OC_User::getHome($user).'/files'; $newpath = $path; if (strncmp($newpath, $datadir, strlen($datadir)) == 0) { $newpath = substr($path, strlen($datadir)); |