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

This commit is contained in:
Michael Gapczynski 2011-07-12 18:26:44 -04:00
parent 190908bc1e
commit f8eced1960
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}