Skip to content
Snippets Groups Projects
Commit f8eced19 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Fix post_create and post_write hooks in copy(), was referencing an undefined variable

parent 190908bc
No related branches found
No related tags found
No related merge requests found
...@@ -415,9 +415,9 @@ class OC_FILESYSTEM{ ...@@ -415,9 +415,9 @@ class OC_FILESYSTEM{
} }
OC_HOOK::emit( 'OC_FILESYSTEM', 'post_copy', array( 'oldpath' => $path1 ,'newpath'=>$path2)); OC_HOOK::emit( 'OC_FILESYSTEM', 'post_copy', array( 'oldpath' => $path1 ,'newpath'=>$path2));
if(!$exists){ 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; return $result;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment