]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bad variable reference in event hook.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 6 May 2014 21:40:45 +0000 (23:40 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 6 May 2014 21:40:45 +0000 (23:40 +0200)
classes/File.php

index 69aee7fcee1962c7b302dd893390e43eab469642..d8b20ea678f14ba1c5c8c1b403531f252e95d117 100644 (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;