]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Same as last commit, don't give ID if it's not for a File object
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 10 Mar 2015 23:13:55 +0000 (00:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 10 Mar 2015 23:14:14 +0000 (00:14 +0100)
classes/Avatar.php

index 420f384e13e185e97813077dc43c87cf44fc4513..3ef5d667c879cdb529c09802514c66e9740d6fce 100644 (file)
@@ -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);