summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-10-21 08:45:51 +0200
committerGitHub <noreply@github.com>2016-10-21 08:45:51 +0200
commit50b6ee67cb025332f1ec7012d3705150ef5a165a (patch)
treef9545a8640c9c33a84285658edada5b7c27947cd
parent2799b0a821a434b9db68952b85105f6281e63faa (diff)
parent33cee3502a81e43d429d939c62e1bf95b4bb2b7d (diff)
downloadnextcloud-server-50b6ee67cb025332f1ec7012d3705150ef5a165a.tar.gz
nextcloud-server-50b6ee67cb025332f1ec7012d3705150ef5a165a.zip
Merge pull request #1806 from nextcloud/karakayasemi_1767
Update file.php put function posthook calls
-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();