From 4ae160b0f80d5834ab54fb28312a9ed303b3a64f Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Mon, 3 Jan 2022 17:51:19 +0000 Subject: [PATCH] [PLUGINS][AttachmentShowRelated] Fix onEndShowStyles condition to add proper stylesheet to array --- plugins/AttachmentShowRelated/AttachmentShowRelated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/AttachmentShowRelated/AttachmentShowRelated.php b/plugins/AttachmentShowRelated/AttachmentShowRelated.php index 1d75739773..7f0007c53d 100644 --- a/plugins/AttachmentShowRelated/AttachmentShowRelated.php +++ b/plugins/AttachmentShowRelated/AttachmentShowRelated.php @@ -55,7 +55,7 @@ class AttachmentShowRelated extends Plugin */ 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'; } return Event::next;