Skip to content
Snippets Groups Projects
Commit 4f4498e0 authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix undefined user var, use getUser

parent 8820cd93
Branches
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment