summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Misc.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-08-22 09:37:52 +0200
committerYorhel <git@yorhel.nl>2011-08-22 09:37:52 +0200
commit3e50a783a073ba8359b221f7d9a8071e23ade967 (patch)
treead6c8e9277bf31c3dda7fb09d45283c8426f5d5e /lib/VNDB/Handler/Misc.pm
parent6ff624ccffc043141d33884dcc75d015e924d5d4 (diff)
Use generic imgurl() and imgpath() functions to generate image URLs/paths
Diffstat (limited to 'lib/VNDB/Handler/Misc.pm')
-rw-r--r--lib/VNDB/Handler/Misc.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 643af1cf..d801c667 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -55,8 +55,7 @@ sub homepage {
for (@$scr) {
my($w, $h) = imgsize($_->{width}, $_->{height}, @{$self->{scr_size}});
a href => "/v$_->{vid}", title => $_->{title};
- img src => sprintf("%s/st/%02d/%d.jpg", $self->{url_static}, $_->{scr}%100, $_->{scr}),
- alt => $_->{title}, width => $w, height => $h;
+ img src => imgurl(st => $_->{scr}), alt => $_->{title}, width => $w, height => $h;
end;
}
end;