diff --git a/classes/File.php b/classes/File.php index 69aee7fcee..d8b20ea678 100644 --- a/classes/File.php +++ b/classes/File.php @@ -359,7 +359,7 @@ class File extends Managed_DataObject $mimetype = substr($mimetype,0,$semicolon); } if (in_array($mimetype, $notEnclosureMimeTypes)) { - Event::handle('FileEnclosureMetadata', array($file, &$enclosure)); + Event::handle('FileEnclosureMetadata', array($this, &$enclosure)); } } return $enclosure;