diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-12 18:26:44 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-12 18:26:44 -0400 |
commit | f8eced1960ae9a17cebcb4432ff737a83327c1be (patch) | |
tree | dd67a0ce61353c0ee515b32882caa58c4b3ba8c4 /lib/filesystem.php | |
parent | 190908bc1e48a8c948c8fed8251c85a2055bd0a6 (diff) | |
download | nextcloud-server-f8eced1960ae9a17cebcb4432ff737a83327c1be.tar.gz nextcloud-server-f8eced1960ae9a17cebcb4432ff737a83327c1be.zip |
Fix post_create and post_write hooks in copy(), was referencing an undefined variable
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |