[UI][Attachment] Use Attachment methods to get the proper URL, rather than crafting it in a template
This commit is contained in:
@@ -143,9 +143,9 @@ class ImageEncoder extends Plugin
|
||||
public function onViewAttachmentImage(array $vars, array &$res): bool
|
||||
{
|
||||
$res[] = Formatting::twigRenderFile('imageEncoder/imageEncoderView.html.twig',
|
||||
['attachment' => $vars['attachment'],
|
||||
'thumbnail_parameters' => $vars['thumbnail_parameters'],
|
||||
'note' => $vars['note'],
|
||||
[
|
||||
'attachment' => $vars['attachment'],
|
||||
'note' => $vars['note'],
|
||||
]);
|
||||
return Event::stop;
|
||||
}
|
||||
|
Reference in New Issue
Block a user