Also send explicit cache hooks when calling file_put_contents with a resource

This commit is contained in:
Robin Appelman 2014-02-28 14:21:33 +01:00
parent bc49c6be04
commit 3ff12ef4ec
1 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,9 @@ class View {
fclose($target);
fclose($data);
if ($this->shouldEmitHooks($path) && $result !== false) {
Updater::writeHook(array(
'path' => $this->getHookPath($path)
));
if (!$exists) {
\OC_Hook::emit(
Filesystem::CLASSNAME,