use OC_User::getHome in lib/filesystem.php

This commit is contained in:
Georg Ehrke 2012-08-26 22:24:08 +02:00
parent 045c94ec3e
commit cd5c217c0d
1 changed files with 1 additions and 1 deletions

View File

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