use OC_User::getHome in lib/filesystem.php
This commit is contained in:
parent
045c94ec3e
commit
cd5c217c0d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue