summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Chars.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r--lib/VNDB/Handler/Chars.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index 459bdf21..392bf446 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -60,7 +60,7 @@ sub page {
[ vns => 'Visual novels', join => '<br />', split => sub {
map sprintf('<a href="/v%d">v%d</a> %s %s (%s)', $_->{vid}, $_->{vid},
$_->{rid}?sprintf('[<a href="/r%d">r%d</a>]', $_->{rid}, $_->{rid}):'',
- $self->{char_roles}{$_->{role}}, fmtspoil $_->{spoil}), @{$_[0]};
+ $self->{char_roles}{$_->{role}}[0], fmtspoil $_->{spoil}), @{$_[0]};
}],
);
}
@@ -197,7 +197,7 @@ sub charTable {
# special case: all releases, no exceptions
if(!$vn && @r == 1 && !$r[0]{rid}) {
span class => charspoil $r[0]{spoil};
- txt $self->{char_roles}{$r[0]{role}}.' - ';
+ txt $self->{char_roles}{$r[0]{role}}[0].' - ';
a href => "/v$r[0]{vid}/chars", $r[0]{vntitle};
end;
next;
@@ -211,7 +211,7 @@ sub charTable {
span class => charspoil $_->{spoil};
br if !$vn || $_ != $r[0];
b class => 'grayedout', '> ';
- txt $self->{char_roles}{$_->{role}}.' - ';
+ txt $self->{char_roles}{$_->{role}}[0].' - ';
if($_->{rid}) {
b class => 'grayedout', "r$_->{rid}:";
a href => "/r$_->{rid}", $_->{rtitle};