summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-29 08:37:46 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-29 08:37:46 -0700
commit2cfcf0083fcf0a82060451f4efb31bc18c06b6a7 (patch)
tree8e5b9672541bc3cadb7a86868ff9f2833eacd5dd
parent301cce54ccdc1dcd1bd63bf4285e870e300979b7 (diff)
parent1fa29b4c118b848fb3e0e6cdb6aa7bb88cb9d62e (diff)
downloadnextcloud-server-2cfcf0083fcf0a82060451f4efb31bc18c06b6a7.tar.gz
nextcloud-server-2cfcf0083fcf0a82060451f4efb31bc18c06b6a7.zip
Merge pull request #4643 from owncloud/touch-newfile-hook
also emmit create hook when creating new files using touch()
-rw-r--r--lib/files/view.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index bb737f19ef8..8aee12bf6fe 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -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);