git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 6f76c8b5 authored by mmn's avatar mmn

Same as last commit, don't give ID if it's not for a File object

parent 88411fb1
......@@ -244,7 +244,7 @@ class Avatar extends Managed_DataObject
$original = Avatar::getUploaded($target);
$imagefile = new ImageFile($target->id, Avatar::path($original->filename));
$imagefile = new ImageFile(null, Avatar::path($original->filename));
$filename = $imagefile->resize($width);
$scaled = clone($original);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment