Bad variable reference in event hook.

This commit is contained in:
Mikael Nordfeldth 2014-05-06 23:40:45 +02:00
parent 34114e87be
commit 621533a7c2
1 changed files with 1 additions and 1 deletions

View File

@ -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;