summaryrefslogtreecommitdiff
path: root/lib/VNWeb/HTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-12 21:08:34 +0200
committerYorhel <git@yorhel.nl>2019-10-12 21:08:34 +0200
commit8c9a5a4bdfa111b149ea58f36db7720f62a2d379 (patch)
tree55de352560b2b20ed8bb92897fd320ce71079bdb /lib/VNWeb/HTML.pm
parent0be1aa6acb62c13b4bcb4bd52a9c76df5f248e45 (diff)
rewards: Fix applying the public skin even when disabled
Diffstat (limited to 'lib/VNWeb/HTML.pm')
-rw-r--r--lib/VNWeb/HTML.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm
index 17ab0947..ad5a9076 100644
--- a/lib/VNWeb/HTML.pm
+++ b/lib/VNWeb/HTML.pm
@@ -119,9 +119,10 @@ sub _head_ {
my $o = shift;
my $fancy = !(auth->pref('nodistract_can') && auth->pref('nodistract_nofancy'));
- my $skin = tuwf->reqGet('skin') || ($fancy && $o->{pubskin}{pubskin_can} ? $o->{pubskin}{skin} : auth->pref('skin')) || '';
+ my $pubskin = $fancy && $o->{pubskin}{pubskin_can} && $o->{pubskin}{pubskin_enabled};
+ my $skin = tuwf->reqGet('skin') || ($pubskin ? $o->{pubskin}{skin} : auth->pref('skin')) || '';
$skin = config->{skin_default} if !tuwf->{skins}{$skin};
- my $customcss = $fancy && $o->{pubskin}{pubskin_can} ? $o->{pubskin}{customcss} : auth->pref('customcss');
+ my $customcss = $pubskin ? $o->{pubskin}{customcss} : auth->pref('customcss');
meta_ charset => 'utf-8';
title_ $o->{title}.' | vndb';