summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/LayoutHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-29 15:47:24 +0100
committerYorhel <git@yorhel.nl>2009-01-02 17:02:07 +0100
commitb28d061044b403c82b2338bae2d0909f1dcabc5c (patch)
tree74653922b5a0a2b7bfa46ff89d0eeebd5ec72289 /lib/VNDB/Util/LayoutHTML.pm
parentd620b3428e324bd36ec006b49808e68bef2fbb5d (diff)
Added skin parameter to override user settings
Useful when showing off a new skin
Diffstat (limited to 'lib/VNDB/Util/LayoutHTML.pm')
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index f16c79fc..b07da131 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -12,8 +12,8 @@ our @EXPORT = qw|htmlHeader htmlFooter|;
sub htmlHeader { # %options->{ title, js, noindex, search }
my($self, %o) = @_;
- my $skin = $self->authInfo->{skin} || $self->{skin_default};
- $skin = $self->{skin_default} if !-d "$VNDB::ROOT/static/s/$skin";
+ my $skin = $self->reqParam('skin') || $self->authInfo->{skin} || $self->{skin_default};
+ $skin = $self->{skin_default} if !$self->{skins}{$skin} || !-d "$VNDB::ROOT/static/s/$skin";
# heading
html;