From ad69fc565fe01e18bca7d3ad975156d6a2c8a604 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 15 Mar 2011 18:00:30 +0100 Subject: Only place lightbox html links when lightbox is enabled --- lib/App/Dthumb.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/App/Dthumb.pm') diff --git a/lib/App/Dthumb.pm b/lib/App/Dthumb.pm index 8d71383..f7b6d86 100755 --- a/lib/App/Dthumb.pm +++ b/lib/App/Dthumb.pm @@ -146,6 +146,12 @@ sub new { height => $conf{size} * $conf{spacing} . 'px', ); + if ($conf{lightbox}) { + $ref->{data}->set_vars( + lightbox => $ref->{data}->get('html_lightbox.dthumb'), + ); + } + $ref->{html} = $ref->{data}->get('html_start.dthumb'); return bless($ref, $obj); -- cgit v1.2.3