We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6f76c8b5 authored by mattl's avatar mattl

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