Fix post_create and post_write hooks in copy(), was referencing an undefined variable
This commit is contained in:
parent
190908bc1e
commit
f8eced1960
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue