]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix undefined user var, use getUser
authorBart Visscher <bartv@thisnet.nl>
Fri, 21 Sep 2012 19:29:37 +0000 (21:29 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 21 Sep 2012 19:29:37 +0000 (21:29 +0200)
lib/filesystem.php

index ce4d3a0cf489e9007ee99ef9c572c03920e8b812..f5c10923b32c9c9dae9245c59dde4d311fc2909b 100644 (file)
@@ -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));