]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change post_write hook to write to prevent creating a duplicate of the original file...
authorMichael Gapczynski <mtgap@owncloud.com>
Sun, 16 Dec 2012 20:08:18 +0000 (15:08 -0500)
committerTom Needham <needham.thomas@gmail.com>
Sat, 29 Dec 2012 19:30:31 +0000 (19:30 +0000)
apps/files_versions/appinfo/app.php

index 599d302e6e4b5a820457cd8798cd408d3c44a3ac..afc0a67edbac4024d373b27dc6f915052e19e9fe 100644 (file)
@@ -10,7 +10,7 @@ OCP\App::registerPersonal('files_versions', 'settings-personal');
 OCP\Util::addscript('files_versions', 'versions');
 
 // Listen to write signals
-OCP\Util::connectHook('OC_Filesystem', 'post_write', "OCA_Versions\Hooks", "write_hook");
+OCP\Util::connectHook('OC_Filesystem', 'write', "OCA_Versions\Hooks", "write_hook");
 // Listen to delete and rename signals
 OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Versions\Hooks", "remove_hook");
 OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA_Versions\Hooks", "rename_hook");
\ No newline at end of file