diff options
author | Yorhel <git@yorhel.nl> | 2008-12-28 14:31:31 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-12-28 14:31:31 +0100 |
commit | 412b3bb8baeef93869c92687956a007841d4492c (patch) | |
tree | 2027de4558d4491b1655b3f6a86d6999ed33bdf9 /lib | |
parent | 8f28a60b4ea5c3a25a962472e133a16fb1b2a642 (diff) |
Fall back to default skin if the selected skin doesn't exist anymore
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index 8f067a36..30a10ce3 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -13,6 +13,7 @@ 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"; # heading html; |