summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-09-27 09:55:59 +0200
committerYorhel <git@yorhel.nl>2022-09-27 09:55:59 +0200
commit797ddf64b5fe22e7d07ec773342ed461db0f8edf (patch)
treeeb934b28306ee51bf8cf2ebeef19b9561a174f71
parentaf1da03a19e056ad864640ad14e9b26a0fcfc19f (diff)
VN::Page: Fix display of unofficial titles
-rw-r--r--lib/VNWeb/VN/Page.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/VN/Page.pm b/lib/VNWeb/VN/Page.pm
index 69aff93b..a58a742c 100644
--- a/lib/VNWeb/VN/Page.pm
+++ b/lib/VNWeb/VN/Page.pm
@@ -418,7 +418,7 @@ sub infobox_ {
sub tlang_ {
my($t) = @_;
- tr_ class => 'title', class => $t->{official}?undef:'grayedout', sub {
+ tr_ mkclass(title => 1, grayedout => !$t->{official}), sub {
td_ sub {
abbr_ class => "icons lang $t->{lang}", title => $LANGUAGE{$t->{lang}}, '';
};