summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
diff options
context:
space:
mode:
authorSemih Serhat Karakaya <karakayasemi@itu.edu.tr>2016-10-17 13:20:41 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-20 21:07:15 +0200
commit33cee3502a81e43d429d939c62e1bf95b4bb2b7d (patch)
tree024b260089a6ba7342f0de73bfb5bd367d61728c /apps/dav/lib/Connector
parentd9aeee2aa1f2d47c950a4e053a47b38a040b62b5 (diff)
downloadnextcloud-server-33cee3502a81e43d429d939c62e1bf95b4bb2b7d.tar.gz
nextcloud-server-33cee3502a81e43d429d939c62e1bf95b4bb2b7d.zip
Update file.php put function posthook calls
Logicaly, postHooks should emit after touch. For chunking file it is already emitting after touch. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index f2c69eccff9..d0826ee5a8c 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -203,10 +203,6 @@ class File extends Node implements IFile {
throw new FileLocked($e->getMessage(), $e->getCode(), $e);
}
- if ($view) {
- $this->emitPostHooks($exists);
- }
-
// allow sync clients to send the mtime along in a header
$request = \OC::$server->getRequest();
if (isset($request->server['HTTP_X_OC_MTIME'])) {
@@ -214,6 +210,10 @@ class File extends Node implements IFile {
header('X-OC-MTime: accepted');
}
}
+
+ if ($view) {
+ $this->emitPostHooks($exists);
+ }
$this->refreshInfo();