Fix syntax error in removeETagHook
This commit is contained in:
parent
9c4c79346c
commit
fed34aecfa
|
@ -527,13 +527,13 @@ class OC_Filesystem{
|
|||
} else {
|
||||
$path=$params['oldpath'];
|
||||
}
|
||||
|
||||
if (root) { // reduce path to the required part of it (no 'username/files')
|
||||
$fakeRootView = new OC_FilesystemView($root);
|
||||
$count = 1;
|
||||
|
||||
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 = self::normalizePath($path);
|
||||
OC_Connector_Sabre_Node::removeETagPropertyForPath($path);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue