diff options
author | Yorhel <git@yorhel.nl> | 2008-12-29 13:42:58 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-12-29 13:42:58 +0100 |
commit | 3c1b01ec2ba0328f74aa7269bae8015cf1faf531 (patch) | |
tree | 32be3bc4696399abf14e09f1f8f78f38f92509dc /lib/VNDB/Util/LayoutHTML.pm | |
parent | 1ef9db32e893669cc5da7b69b371ef051008b989 (diff) | |
parent | f000aaf69e345bae4fc5581e5028463c85cfdafb (diff) |
Merge branch 'beta'2.1
Diffstat (limited to 'lib/VNDB/Util/LayoutHTML.pm')
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index e5ced8f6..30a10ce3 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -12,13 +12,15 @@ 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; head; title $o{title}; Link rel => 'shortcut icon', href => '/favicon.ico', type => 'image/x-icon'; - Link rel => 'stylesheet', href => $self->{url_static}.'/f/style.css', type => 'text/css', media => 'all'; + Link rel => 'stylesheet', href => $self->{url_static}.'/s/'.$skin.'/style.css', type => 'text/css', media => 'all'; if($o{js}) { script type => 'text/javascript', src => $self->{url_static}.'/f/forms.js'; end; } |