From d492b74e42c80042cc26cb9a0c21f16d80d8bdfd Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 18 Jan 2015 02:57:08 +0100 Subject: [PATCH] holy crap, file_put_contents got args in wrong order --- plugins/OStatus/classes/Ostatus_profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 37d3dafa18..2fb869e2f3 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -1270,7 +1270,7 @@ class Ostatus_profile extends Managed_DataObject throw new ServerException(sprintf(_m('Unable to fetch avatar from %s.'), $url)); } // FIXME: make sure it's an image here instead of _after_ writing to a file? - file_put_contents($response->getBody(), $temp_filename); + file_put_contents($temp_filename, $response->getBody()); if ($this->isGroup()) { $id = $this->group_id;