X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/2c71866982200bc4c9be7c9dbb63f1a3fded70d4..682883c393a571b058b75bc2e493f5722945a448:/common.inc.plp diff --git a/common.inc.plp b/common.inc.plp index 4bc68a6..ff84a9a 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -54,8 +54,7 @@ our $style; $header{content_type} = 'text/html; charset=utf-8'; sub stylesheet { - my ($avail) = @_; - my @avail = ref $avail eq 'ARRAY' ? @{$avail} : $avail or return; + my @avail = qw( light dark circus mono red ); my %styles = map {$_ => $_} @avail; if (defined( my $setstyle = $get{style} )) { @@ -127,7 +126,6 @@ sub Html { } # default fallbacks - $meta->{stylesheet} ||= [qw( light dark circus mono red )]; $meta->{charset} ||= 'utf-8'; $meta->{lang} ||= 'en'; @@ -143,7 +141,7 @@ sub Html { unshift @{ $meta->{raw} }, ( '', ); - $meta->{stylesheet} = stylesheet($meta->{stylesheet}); + $meta->{stylesheet} = stylesheet(); if (my $img = $meta->{image}) { my $proto = sprintf('http%s://', !!$ENV{HTTPS} && 's');