diff options
author | Yorhel <git@yorhel.nl> | 2019-08-09 20:10:01 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-08-09 20:10:03 +0200 |
commit | 639ace79c162c30a17bb3bbf2f4b260168cf4a05 (patch) | |
tree | b86ea44b0e97e7fc78fadfdb1027299acaab34e4 | |
parent | 79737e9d1c1e37601f5fd72dd7c75cfa3432e963 (diff) |
Handler::Staff: Actually use entryLinks()
Somehow forgot to update this part. Odd.
-rw-r--r-- | lib/VNDB/Handler/Staff.pm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm index 5e431db5..2a6e8ec5 100644 --- a/lib/VNDB/Handler/Staff.pm +++ b/lib/VNDB/Handler/Staff.pm @@ -94,19 +94,14 @@ sub page { end; end; } - my @links = ( - $s->{l_site} ? [ 'Official page', $s->{l_site} ] : (), - $s->{l_wp} ? [ 'Wikipedia', "http://en.wikipedia.org/wiki/$s->{l_wp}" ] : (), - $s->{l_twitter} ? [ 'Twitter', "https://twitter.com/$s->{l_twitter}" ] : (), - $s->{l_anidb} ? [ 'AniDB', "http://anidb.net/cr$s->{l_anidb}" ] : (), - ); - if(@links) { + my $links = $self->entryLinks(s => $s); + if(@$links) { Tr; td class => 'key', 'Links'; td; - for(@links) { + for(@$links) { a href => $_->[1], $_->[0]; - br if $_ != $links[$#links]; + br if $_ != $links->[$#$links]; } end; end; |