]> git.sesse.net Git - ccbs/blobdiff - html/ccbs.pm
Fix a typo in index.tmpl.
[ccbs] / html / ccbs.pm
index cd71ce8aeb6f68b3ee318ee5464b03a436b79f1a..7940dd92fbf028514947221cca49709e609c4a11 100755 (executable)
@@ -79,7 +79,7 @@ sub process_template {
        my ($page, $title, $vars) = @_;
        $vars->{'page'} = $page;
        $vars->{'title'} = $title;
-       $vars->{'public'} = $config::ccbs::noadmin;
+       $vars->{'public'} = $ccbs::config::noadmin;
        $vars->{'timetogenerate'} = sprintf "%.3f", Time::HiRes::tv_interval($start_time);
        
        my $config = {
@@ -92,7 +92,7 @@ sub process_template {
        my $template = Template->new($config);
 
        my $output = '';
-       $template->process('main.tmpl', $vars, \$output)
+       $template->process($ccbs::config::main_template, $vars, \$output)
                or die $template->error();
 
        print $output;