Commit fecde400 authored by Vincent Petry's avatar Vincent Petry Committed by GitHub
Browse files

Merge pull request #26387 from karakayasemi/patch-2

Update file.php post hook calls
parents 29065d35 e2b09e1a
......@@ -202,10 +202,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'])) {
......@@ -213,7 +209,11 @@ class File extends Node implements IFile {
header('X-OC-MTime: accepted');
}
}
if ($view) {
$this->emitPostHooks($exists);
}
$this->refreshInfo();
if (isset($request->server['HTTP_OC_CHECKSUM'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment