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/Data.pm.PL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/App/Dthumb/Data.pm.PL') diff --git a/lib/App/Dthumb/Data.pm.PL b/lib/App/Dthumb/Data.pm.PL index eaf914e..a0fb4f5 100644 --- a/lib/App/Dthumb/Data.pm.PL +++ b/lib/App/Dthumb/Data.pm.PL @@ -103,7 +103,10 @@ B function, dthumb will replace occurences of "" or "/* $key sub set_vars { my ($self, %vars) = @_; - $self->{replace} = \%vars; + + while (my ($key, $value) = each(%vars)) { + $self->{replace}->{$key} = $value; + } } -- cgit v1.2.3