]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/WikiHowProfile/WikiHowProfilePlugin.php
ImageFile $id argument is only for File objects
[quix0rs-gnu-social.git] / plugins / WikiHowProfile / WikiHowProfilePlugin.php
index 6f45da6a707cbbbe8efbafad2736ed94f311c0ab..b058cc3b6530886f50a070c1ef07a36bbe66daaf 100644 (file)
@@ -188,9 +188,7 @@ class WikiHowProfilePlugin extends Plugin
 
             $profile = $user->getProfile();
             $id = $profile->id;
-            // @fixme should we be using different ids?
-
-            $imagefile = new ImageFile($id, $temp_filename);
+            $imagefile = new ImageFile(null, $temp_filename);
             $filename = Avatar::filename($id,
                                          image_type_to_extension($imagefile->type),
                                          null,