summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-24 10:26:34 +0200
committerYorhel <git@yorhel.nl>2019-09-24 10:26:38 +0200
commitc7642c03d99ed0255614a43fb82e55a1dde66753 (patch)
tree5b293a9b1c8d58b70db2694779dce7be04e68331
parentc4c6ba1536e654387287e322c8ee0ba504e039d3 (diff)
Handler::VNPage: Turn character names in seiyuu diff into links
https://vndb.org/t950.610
-rw-r--r--lib/VNDB/Handler/VNPage.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 8cb2fecd..9cc97340 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -560,8 +560,8 @@ sub _revision {
return @r ? @r : ('[empty]');
}],
[ seiyuu => 'Seiyuu', join => '<br />', split => sub {
- my @r = map sprintf('<a href="/s%d" title="%s">%s</a> as %s%s',
- $_->{id}, xml_escape($_->{original}||$_->{name}), xml_escape($_->{name}), xml_escape($_->{cname}),
+ my @r = map sprintf('<a href="/s%d" title="%s">%s</a> as <a href="/c%d">%s</a>%s',
+ $_->{id}, xml_escape($_->{original}||$_->{name}), xml_escape($_->{name}), $_->{cid}, xml_escape($_->{cname}),
$_->{note} ? ' ['.xml_escape($_->{note}).']' : ''),
sort { $a->{id} <=> $b->{id} || $a->{cid} <=> $b->{cid} || $a->{note} cmp $b->{note} } @{$_[0]};
return @r ? @r : ('[empty]');