]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/grouplogo.php
ImageFile $id argument is only for File objects
[quix0rs-gnu-social.git] / actions / grouplogo.php
index 10fd33088d6a60fa3445b1339febd442e595d4be..3dc9891e0b93a559f78b7ec36c05fa81b838b29c 100644 (file)
@@ -393,7 +393,7 @@ class GrouplogoAction extends GroupAction
         $size = min($dest_w, $dest_h);
         $size = ($size > MAX_ORIGINAL) ? MAX_ORIGINAL:$size;
 
-        $imagefile = new ImageFile($this->group->id, $filedata['filepath']);
+        $imagefile = new ImageFile(null, $filedata['filepath']);
         $filename = $imagefile->resize($size, $dest_x, $dest_y, $dest_w, $dest_h);
 
         if ($this->group->setOriginal($filename)) {