Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-05 23:50:35 +0400
committerRobin Appelman <icewind@owncloud.com>2012-02-21 23:48:48 +0400
commitfd4b30ac6f81193cac1e558cc115802717aa88c1 (patch)
treed4dd48c182c04529f6036b8439901e39159ce979 /lib/filesystemview.php
parente9af2185625f5012067cd5fe2ee04cee9828f11b (diff)
no post hooks for fopen
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 27552d25f2b..a7003e84f19 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -317,9 +317,11 @@ class OC_FilesystemView {
$result=$storage->$operation($interalPath);
}
$result=OC_FileProxy::runPostProxies($operation,$path,$result);
- foreach($hooks as $hook){
- if($hook!='read'){
- OC_Hook::emit( OC_Filesystem::CLASSNAME, 'post_'.$hook, array( OC_Filesystem::signal_param_path => $path));
+ if($operation!='fopen'){//no post hooks for fopen, the file stream is still open
+ foreach($hooks as $hook){
+ if($hook!='read'){
+ OC_Hook::emit( OC_Filesystem::CLASSNAME, 'post_'.$hook, array( OC_Filesystem::signal_param_path => $path));
+ }
}
}
return $result;