]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
holy crap, file_put_contents got args in wrong order
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Jan 2015 01:57:08 +0000 (02:57 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Jan 2015 01:57:08 +0000 (02:57 +0100)
plugins/OStatus/classes/Ostatus_profile.php

index 37d3dafa18bd4e63716c537c6c4091d3b1e88ce8..2fb869e2f3bafef92ed4d90666cdb732cbabfe5c 100644 (file)
@@ -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;