Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-08-27 00:24:08 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-08-27 00:24:08 +0400
commitcd5c217c0d006ec82cdbd8c952b753ecb0132ac7 (patch)
treea480377c5dab65f0bd623f82a79e047f5fd4c049 /lib/filesystem.php
parent045c94ec3e3fe0bd3cbb05a46b3c797e13050ac3 (diff)
use OC_User::getHome in lib/filesystem.php
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php2
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));