ImageFile $id argument is only for File objects

Remember to eliminate the Avatar/group logo call to ImageFile->resize!
This commit is contained in:
Mikael Nordfeldth
2015-03-11 00:20:48 +01:00
parent 6f76c8b59d
commit 2a32af084f
7 changed files with 7 additions and 10 deletions

View File

@@ -1268,8 +1268,7 @@ class Ostatus_profile extends Managed_DataObject
} else {
$id = $this->profile_id;
}
// @todo 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,