Use the default theme if it wasn't given as a CGI parameter.
This commit is contained in:
parent
f7b8e9d4c5
commit
d6f6462bf4
|
|
@ -29,8 +29,10 @@ use HTML::Template;
|
|||
|
||||
my $input = new CGI;
|
||||
|
||||
my $theme = $input->param('theme'); # only used if allowthemeoverride is set
|
||||
my $theme = $input->param('theme') || "default";
|
||||
# only used if allowthemeoverride is set
|
||||
my %tmpldata = pathtotemplate ( template => 'member.tmpl', theme => $theme, language => 'fi' );
|
||||
# FIXME - Error-checking
|
||||
my $template = HTML::Template->new( filename => $tmpldata{'path'},
|
||||
die_on_bad_params => 0,
|
||||
loop_context_vars => 1 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue