]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content...
authorFlorian Vichot <florian.vichot@gmail.com>
Sun, 6 Nov 2011 15:43:00 +0000 (16:43 +0100)
committerRobin Appelman <icewind1991@gmail.com>
Sun, 6 Nov 2011 21:39:24 +0000 (22:39 +0100)
lib/connector/sabre/file.php

index b049f39c171aa8f39f686c1d268a1e56b3730059..98661dbb184a4f53f833f04b81521fdfbcd51615 100644 (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');
 
        }