]> source.dussan.org Git - nextcloud-server.git/commitdiff
also emmit create hook when creating new files using touch()
authorRobin Appelman <icewind@owncloud.com>
Thu, 29 Aug 2013 13:31:03 +0000 (15:31 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 29 Aug 2013 13:31:03 +0000 (15:31 +0200)
lib/files/view.php

index bb737f19ef823695f8958492490ca2b50e092ba9..8aee12bf6fe2b157e490a40beb2697383032e6ae 100644 (file)
@@ -249,6 +249,7 @@ class View {
                $hooks = array('touch');
 
                if (!$this->file_exists($path)) {
+                       $hooks[] = 'create';
                        $hooks[] = 'write';
                }
                $result = $this->basicOperation('touch', $path, $hooks, $mtime);