getAbsolutePath() always needs a parameter, added empty path as parameter to get the root path

This commit is contained in:
Björn Schießle 2012-11-07 16:23:57 +01:00
parent 6e8f970999
commit a15a99b304
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ class OC_Filesystem{
if ($root) { // reduce path to the required part of it (no 'username/files')
$fakeRootView = new OC_FilesystemView($root);
$count = 1;
$path=str_replace(OC_App::getStorage("files")->getAbsolutePath(), "", $fakeRootView->getAbsolutePath($path), $count);
$path=str_replace(OC_App::getStorage("files")->getAbsolutePath(''), "", $fakeRootView->getAbsolutePath($path), $count);
}
$path = self::normalizePath($path);