[PLUGINS][AttachmentShowRelated] Fix onEndShowStyles condition to add proper stylesheet to array

This commit is contained in:
Eliseu Amaro 2022-01-03 17:51:19 +00:00
parent a622b175bc
commit 4ae160b0f8
Signed by: eliseuamaro
GPG Key ID: 96DA09D4B97BC2D5

View File

@ -55,7 +55,7 @@ class AttachmentShowRelated extends Plugin
*/ */
public function onEndShowStyles(array &$styles, string $path): bool public function onEndShowStyles(array &$styles, string $path): bool
{ {
if ($path === 'attachment_show') { if ($path === 'note_attachment_show') {
$styles[] = '/assets/default_theme/css/pages/feeds.css'; $styles[] = '/assets/default_theme/css/pages/feeds.css';
} }
return Event::next; return Event::next;