Merge pull request #1806 from nextcloud/karakayasemi_1767

Update file.php put function posthook calls
This commit is contained in:
Roeland Jago Douma 2016-10-21 08:45:51 +02:00 committed by GitHub
commit 50b6ee67cb
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();