Fix undefined user var, use getUser

This commit is contained in:
Bart Visscher 2012-09-21 21:29:37 +02:00
parent 8820cd934a
commit 4f4498e0d6
1 changed files with 1 additions and 1 deletions

View 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));