Use the default theme if it wasn't given as a CGI parameter.
authorarensb <arensb>
Thu, 10 Oct 2002 05:49:52 +0000 (05:49 +0000)
committerarensb <arensb>
Thu, 10 Oct 2002 05:49:52 +0000 (05:49 +0000)
member.pl

index ace4d02..f042763 100755 (executable)
--- a/member.pl
+++ b/member.pl
@@ -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 );