Fix incorrect DataUploadEvent creation, triggering an assertion failure

I guess this one slipped through the cracks when $user was made global.
This commit is contained in:
Justin Brewer 2013-08-11 17:38:50 -05:00
parent 194b68e046
commit 305e25f676

View file

@ -59,7 +59,7 @@ class ArchiveFileHandler extends Extension {
$metadata['extension'] = $pathinfo['extension'];
$metadata['tags'] = $tags;
$metadata['source'] = null;
$event = new DataUploadEvent($user, $tmpname, $metadata);
$event = new DataUploadEvent($tmpname, $metadata);
send_event($event);
}
catch(UploadException $ex) {