summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-16 15:08:18 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-16 15:08:18 -0500
commit63a2271c78a489d10c15ab2ecb97d62c96d2e0ac (patch)
tree0f7f1badf9c15519be7584fc1045b971076a7fd7 /apps/files_versions/appinfo
parent0c87f666ad24492ec45e6d3c05f729132ae1a926 (diff)
downloadnextcloud-server-63a2271c78a489d10c15ab2ecb97d62c96d2e0ac.tar.gz
nextcloud-server-63a2271c78a489d10c15ab2ecb97d62c96d2e0ac.zip
Change post_write hook to write to prevent creating a duplicate of the original file on upload
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/appinfo/app.php b/apps/files_versions/appinfo/app.php
index 599d302e6e4..afc0a67edba 100644
--- a/apps/files_versions/appinfo/app.php
+++ b/apps/files_versions/appinfo/app.php
@@ -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