diff options
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r-- | lib/files/filesystem.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 841f30c7679..e4c269257c2 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -550,15 +550,15 @@ class Filesystem { static public function removeETagHook($params, $root = false) { if (isset($params['path'])) { - $path = $params['path']; + $path=$params['path']; } else { - $path = $params['oldpath']; + $path=$params['oldpath']; } if ($root) { // reduce path to the required part of it (no 'username/files') - $fakeRootView = new View($root); + $fakeRootView = new OC_FilesystemView($root); $count = 1; - $path = str_replace(\OC_App::getStorage("files")->getAbsolutePath($path), "", $fakeRootView->getAbsolutePath($path), $count); + $path=str_replace(OC_App::getStorage("files")->getAbsolutePath(), "", $fakeRootView->getAbsolutePath($path), $count); } $path = self::normalizePath($path); |