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>
This commit is contained in:
Semih Serhat Karakaya 2016-10-17 13:20:41 +03:00 committed by Roeland Jago Douma
parent d9aeee2aa1
commit 33cee3502a
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 4 additions and 4 deletions

View File

@ -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();