will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at

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