From 305e25f676d94603e9483c583722795ac2b4c0ff Mon Sep 17 00:00:00 2001 From: Justin Brewer Date: Sun, 11 Aug 2013 17:38:50 -0500 Subject: [PATCH] Fix incorrect DataUploadEvent creation, triggering an assertion failure I guess this one slipped through the cracks when $user was made global. --- ext/handle_archive/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/handle_archive/main.php b/ext/handle_archive/main.php index 5f0ea3fa..fd57e20c 100644 --- a/ext/handle_archive/main.php +++ b/ext/handle_archive/main.php @@ -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) {