summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-28 14:21:33 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-28 14:21:33 +0100
commit3ff12ef4eca82325a6e4f1244a12597174e07192 (patch)
tree86aa40641b71d68379607a01756eed6175639f08 /lib
parentbc49c6be04d78740d9b7cb100debcb6641559d39 (diff)
downloadnextcloud-server-3ff12ef4eca82325a6e4f1244a12597174e07192.tar.gz
nextcloud-server-3ff12ef4eca82325a6e4f1244a12597174e07192.zip
Also send explicit cache hooks when calling file_put_contents with a resource
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index a76115a816e..975b5d00099 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -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,