Skip to content
Snippets Groups Projects
Commit 50b6ee67 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #1806 from nextcloud/karakayasemi_1767

Update file.php put function posthook calls
parents 2799b0a8 33cee350
No related branches found
No related tags found
No related merge requests found
...@@ -203,10 +203,6 @@ class File extends Node implements IFile { ...@@ -203,10 +203,6 @@ class File extends Node implements IFile {
throw new FileLocked($e->getMessage(), $e->getCode(), $e); throw new FileLocked($e->getMessage(), $e->getCode(), $e);
} }
if ($view) {
$this->emitPostHooks($exists);
}
// allow sync clients to send the mtime along in a header // allow sync clients to send the mtime along in a header
$request = \OC::$server->getRequest(); $request = \OC::$server->getRequest();
if (isset($request->server['HTTP_X_OC_MTIME'])) { if (isset($request->server['HTTP_X_OC_MTIME'])) {
...@@ -214,6 +210,10 @@ class File extends Node implements IFile { ...@@ -214,6 +210,10 @@ class File extends Node implements IFile {
header('X-OC-MTime: accepted'); header('X-OC-MTime: accepted');
} }
} }
if ($view) {
$this->emitPostHooks($exists);
}
$this->refreshInfo(); $this->refreshInfo();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment