]> source.dussan.org Git - nextcloud-server.git/commitdiff
Enable post_write trigger
authorBart Visscher <bartv@thisnet.nl>
Wed, 12 Sep 2012 22:12:10 +0000 (00:12 +0200)
committerBart Visscher <bartv@thisnet.nl>
Wed, 12 Sep 2012 22:12:10 +0000 (00:12 +0200)
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

lib/filesystemview.php

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