aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index ce4d3a0cf48..f5c10923b32 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -357,7 +357,7 @@ class OC_Filesystem{
* @return string
*/
static public function getLocalPath($path) {
- $datadir = OC_User::getHome($user).'/files';
+ $datadir = OC_User::getHome(OC_User::getUser()).'/files';
$newpath = $path;
if (strncmp($newpath, $datadir, strlen($datadir)) == 0) {
$newpath = substr($path, strlen($datadir));