From: Michael Gapczynski Date: Tue, 12 Jul 2011 22:26:44 +0000 (-0400) Subject: Fix post_create and post_write hooks in copy(), was referencing an undefined variable X-Git-Tag: v3.0~267^2~412 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8eced1960ae9a17cebcb4432ff737a83327c1be;p=nextcloud-server.git Fix post_create and post_write hooks in copy(), was referencing an undefined variable --- diff --git a/lib/filesystem.php b/lib/filesystem.php index e6b1638d8d7..a67a36c9213 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -415,9 +415,9 @@ class OC_FILESYSTEM{ } OC_HOOK::emit( 'OC_FILESYSTEM', 'post_copy', array( 'oldpath' => $path1 ,'newpath'=>$path2)); if(!$exists){ - OC_HOOK::emit( 'OC_FILESYSTEM', 'post_create', array( 'path' => $path)); + OC_HOOK::emit( 'OC_FILESYSTEM', 'post_create', array( 'path' => $path2)); } - OC_HOOK::emit( 'OC_FILESYSTEM', 'post_write', array( 'path' => $path)); + OC_HOOK::emit( 'OC_FILESYSTEM', 'post_write', array( 'path' => $path2)); return $result; } }