Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.

This commit is contained in:
Florian Vichot 2011-11-06 16:43:00 +01:00 committed by Robin Appelman
parent 97291fda58
commit 452a463764
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}