[Pkg-owncloud-commits] [owncloud] 116/258: Use afterBind to send fileId header for files and directories

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 387638e31781dd2d0ec0448626fee66f13e5f5f4
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Mon Aug 18 18:39:16 2014 +0200

    Use afterBind to send fileId header for files and directories
    
    afterBind is called for both files and directories and is now used to
    send the OC-FileId headers.
---
 lib/private/connector/sabre/filesplugin.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index 5f83aa0..f281ffd 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -41,7 +41,7 @@ class OC_Connector_Sabre_FilesPlugin extends \Sabre\DAV\ServerPlugin
 
 		$this->server = $server;
 		$this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties'));
-		$this->server->subscribeEvent('afterCreateFile', array($this, 'sendFileIdHeader'));
+		$this->server->subscribeEvent('afterBind', array($this, 'sendFileIdHeader'));
 		$this->server->subscribeEvent('afterWriteContent', array($this, 'sendFileIdHeader'));
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list