From 3725cd079b96dff489d60aadfbd585045af033f8 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 26 Jul 2012 17:41:57 +0200 Subject: Fix oc-1362: post_rename has no path param but newpath and oldpath --- lib/filesystem.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/filesystem.php b/lib/filesystem.php index d88b30c2f68..530d50139b4 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -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)); } -- cgit v1.2.3