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>
pull/1806/head
Semih Serhat Karakaya 9 years ago committed by Roeland Jago Douma
parent d9aeee2aa1
commit 33cee3502a
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
  1. 8
      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();

Loading…
Cancel
Save