Enable post_write trigger

This is used when uploading a file with webdav. The trigger will add the file to the cache and make it show up in listings
This commit is contained in:
Bart Visscher 2012-09-13 00:12:10 +02:00
parent 78a022fda6
commit e3e4a2bec2

View file

@ -295,12 +295,12 @@ class OC_FilesystemView {
OC_Filesystem::signal_post_create, OC_Filesystem::signal_post_create,
array( OC_Filesystem::signal_param_path => $path) array( OC_Filesystem::signal_param_path => $path)
); );
}/* }
OC_Hook::emit( OC_Hook::emit(
OC_Filesystem::CLASSNAME, OC_Filesystem::CLASSNAME,
OC_Filesystem::signal_post_write, OC_Filesystem::signal_post_write,
array( OC_Filesystem::signal_param_path => $path) array( OC_Filesystem::signal_param_path => $path)
);*/ );
OC_FileProxy::runPostProxies('file_put_contents', $absolutePath, $count); OC_FileProxy::runPostProxies('file_put_contents', $absolutePath, $count);
return $count > 0; return $count > 0;
}else{ }else{