diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-14 15:25:52 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-14 15:25:52 +0200 |
commit | 308af8b909822b1d1e3b601061d56d9e34585dff (patch) | |
tree | dc2066acff0cc90d43b33459f58fe1323488ff13 /lib | |
parent | 2fd44dbde44c3540d664ade0df277553e7759186 (diff) | |
download | nextcloud-server-308af8b909822b1d1e3b601061d56d9e34585dff.tar.gz nextcloud-server-308af8b909822b1d1e3b601061d56d9e34585dff.zip |
pass a stream to the tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/connector/sabre/file.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index bc4535657dc..8d739167f8f 100644 --- a/lib/private/connector/sabre/file.php +++ b/lib/private/connector/sabre/file.php @@ -82,12 +82,6 @@ class File extends Node implements IFile { * @return string|null */ public function put($data) { - if (is_string($data)) { - $stream = fopen('php://temp', 'r+'); - fwrite($stream, $data); - fseek($stream, 0); - $data = $stream; - }; try { $exists = $this->fileView->file_exists($this->path); if ($this->info && $exists && !$this->info->isUpdateable()) { |