[Pkg-owncloud-commits] [owncloud] 32/75: Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:08:34 UTC 2013


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

taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.

commit 37077067597d9e3c10a699dde1563d4f42d16931
Author: Florian Vichot <florian.vichot at gmail.com>
Date:   Sun Nov 6 16:43:00 2011 +0100

    Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.
---
 lib/connector/sabre/file.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php
index b049f39..98661db 100644
--- a/lib/connector/sabre/file.php
+++ b/lib/connector/sabre/file.php
@@ -29,7 +29,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
 	 */
 	public function get() {
 
-		return OC_Filesystem::file_get_contents($this->path);
+		return OC_Filesystem::fopen($this->path,'r');
 
 	}
 

-- 
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