From: Mikael Nordfeldth Date: Tue, 6 May 2014 21:40:45 +0000 (+0200) Subject: Bad variable reference in event hook. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=621533a7c29f9a4b307742893fdbab4285ca65d6;p=quix0rs-gnu-social.git Bad variable reference in event hook. --- 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;