From 621533a7c29f9a4b307742893fdbab4285ca65d6 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 6 May 2014 23:40:45 +0200 Subject: [PATCH] Bad variable reference in event hook. --- classes/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5