Fix oc-1362: post_rename has no path param but newpath and oldpath

remotes/origin/stable45
Bart Visscher 2012-07-26 17:41:57 +07:00
parent ebe4d1f0ee
commit 3725cd079b
1 changed files with 5 additions and 1 deletions

@ -474,7 +474,11 @@ class OC_Filesystem{
}
static public function removeETagHook($params) {
$path=$params['path'];
if (isset($params['path'])) {
$path=$params['path'];
} else {
$path=$params['oldpath'];
}
OC_Connector_Sabre_Node::removeETagPropertyForPath($path);
OC_Connector_Sabre_Node::removeETagPropertyForPath(dirname($path));
}