diff options
author | Yorhel <git@yorhel.nl> | 2011-08-22 09:37:52 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-08-22 09:37:52 +0200 |
commit | 3e50a783a073ba8359b221f7d9a8071e23ade967 (patch) | |
tree | ad6c8e9277bf31c3dda7fb09d45283c8426f5d5e /lib/VNDB/Handler/Misc.pm | |
parent | 6ff624ccffc043141d33884dcc75d015e924d5d4 (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.pm | 3 |
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; |