[MEDIA][AttachmentThumbnail] Add mimetype to Entity

This commit is contained in:
2021-07-22 21:17:23 +01:00
committed by Hugo Sales
parent 41dcef3c7b
commit a5348f2427
3 changed files with 21 additions and 7 deletions

View File

@@ -106,11 +106,11 @@ class ImageEncoder extends Plugin
}
/**
* @param $event_map
* @param array $event_map
*
* @return bool
*/
public function onResizerAvailable(&$event_map): bool
public function onResizerAvailable(array &$event_map): bool
{
$event_map['image'] = 'ResizeImagePath';
return Event::next;
@@ -121,6 +121,7 @@ class ImageEncoder extends Plugin
*
* @param array $vars
* @param array $res
*
* @return bool
*/
public function onViewAttachmentImage(array $vars, array &$res): bool