- Affected version
- 2.1.10
Template
which does load the lightbox JS & CSS even if the thread does not have any attachment or image.
This seems unnecessary as the BB-Code templates for
same is true for macro
thread_view
does contain the following code:
Code:
<xf:macro template="lightbox_macros" name="setup" arg-canViewAttachments="{$thread.canViewAttachments()}" />
This seems unnecessary as the BB-Code templates for
[img]
and [attach]
as well as macro do call macro lightbox_macros:single_image
which does the initialization on demand; same is true for macro
attachment_macros:attachment_list_item
which does directly call lightbox_macros:setup